edit: this topic refers to https://www.prorealcode.com/topic/bar-colour-related-to-atr/
Hi Rob,
Could you please help in this code so that it can go long repetitively?
AGBAR = AverageTrueRange[14](close) * 1.5
IF Range > AGBAR AND close > open THEN
BUY 10 CONTRACTS AT MARKET
ENDIF
Do not append different questions to exixting topics in different support forums.
I created a new topic in ProOrder support.
Thank you 🙂
There you go:
DEFPARAM CumulateOrders = true
AGBAR = AverageTrueRange[14](close) * 1.5
IF Range > AGBAR AND close > open THEN
BUY 10 CONTRACTS AT MARKET
ENDIF
set stop pLoss 100
set target pProfit 300