Dear Roberto,
You very kindly helped me very successfully for the bar counting program. Maybe would you accept to write another short program based on Trader Tom BO strategy.
This one goes as follow for the dax for example. We place a stop order with a take profit of 6 and stop loss of 9 at the opening 9am at the highest point and lowest one of the preceding hour. He says the strategy wins 70% of the time and he does the same on dow with other tp and sl. Let me know if can do it. Best. Maurice
I created a new topic in ProOrder support.
For any specific unrelated question, please open a new topic in the correct support forum, using a meaningful subject, instead of appending it to an existing one.
Thank you 🙂
There you go:
Timeframe(1h,UpdateOnClose)
ONCE LowEntry = 0
ONCE HighEntry = 0
IF Time >= 090000 AND Not OnMarket THEN
IF time = 090000 THEN
LowEntry = low
HighEntry = high
ENDIF
IF (LowEntry + HighEntry) <> 0 THEN
BUY 1 CONTRACT AT HighEntry STOP
SELLSHORT 1 CONTRACT AT LowEntry STOP
ENDIF
ENDIF
Thank you very much. All the best
Dear Roberto,
I forgot one condition. If one order is trigger the other has to be deleted and if after 5 min no position is triggered then both are suppressed. I guess it is quite simple to add.
Best.
Maurice
There you go:
DEFPARAM CumulateOrders = false
Timeframe(1h,UpdateOnClose)
HH = high
LL = low
//
Timeframe(default) //5-minute TF
IF Time = 090000 THEN
BUY 1 CONTRACT AT HH STOP
SELLSHORT 1 CONTRACT AT LL STOP
ENDIF