Forum

ON/OFF Strategy

Hey, I have written a code with an ON/OFF buttons to turn on or Off strategies. However, I am not sure that the way I did works well for optimization with the " || ". Maybe I should use " && " ? Thnaks

BUY and SELL immediatly

Hello, I join you the code of a simple DEMA strategy. Problem is: it closes and open trades immediatly on the same candle... What is the mistake I am doing ? Thanks a lot