I need to set up a chart in the most efficient way possible to execute an order like this:
If open>high[1] {a gap up} and RSI(close,5)>50 then sell 1 contract next bar at open-.25*Avgtruerange(10) stop
Do I set up a 2 instrument chart with a 1 minute bar time frame as data1 and a daily as data2 and then change the syntax to -
if opend(0)>high of data2 and RSI(close,5) of data2>50 then sell 1 contract at
open-.25*Avgtruerange(10) stop;
Will that even work or do I need to set all the data2 references to 1 bar ago?
or
Do I try to use just a daily chart with IOG switched on .. in which case the language would be:
If opend(0)>high[1] {a gap up} and RSI(close,5)[1]>50 then sell 1 contract next bar at opend(0)-.25*Avgtruerange(10) stop;
Will that work?
open next bar substitute
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: open next bar substitute
Dear evanscje,
I would suggest you to try all these options in real-time trading on sim account. Thus, you can chose what suits you the best.
I would suggest you to try all these options in real-time trading on sim account. Thus, you can chose what suits you the best.