Hi.
I want that the system fails an operation does not operate until the Next day.
Thanks!
ONCE TradeON = 1
IF IntraDayBarIndex = 0 THEN
TradeON = 1
ENDIF
IF StrategyProfit < StrategyProfit[1] THEN
TradeON = 0
ENDIF
IF MyConditionsLong AND TradeON THEN
BUY AT MARKET
ENDIF
There you go, add (as I did) TradeON to your conditions to open a trade.
Thanks Roberto.
One other question, please…
I want when the system loss 2% of total gain in one day… The system dont operate until the Next day.
Thanks!
Similar to the one above:
ONCE TradeON = 1
ONCE Capital = 10000 //this is your initial capital
IF IntraDayBarIndex = 0 THEN
TradeON = 1
MyProfit = Capital + StrategyProfit
ENDIF
IF (MyProfit - (Capital + StrategyProfit)) >= (MyProfit * 0.02) THEN
TradeON = 0
ENDIF
IF MyConditionsLong AND TradeON THEN
BUY AT MARKET
ENDIF
Then add TradeON to your conditions to open a trade, as above.