I'm trying to figure out how to trigger orders before bar (5 minute or 10 minute, etc...) closes.
How would I program a strategy to trigger an order using 1minute price close on 5 minute chart?
Is it possible to use real-time price data to trigger 5 minute variable such as Bollinger Band?
I'm not sure if high or low data is "live" and can trigger orders before bar close.
ie/ Price is above BollingerBand (5m) = submit sell order
Currrent
if ((Close < Bollinger.Lower)
{
EnterLong(10, @"BuyLong");
ExitShort(10, @"SellShort","");
}
Hoping for:
if ((Price/Low/Close [1m] < Bollinger.Lower)
{
EnterLong(10, @"BuyLong");
ExitShort(10, @"SellShort","");
}
Your help is very much appreciated
Comment