Forum

Need Logic for Open / Close notification.

Hello, I'm having trouble finding a good logic to notify me of each Open/Close event. My issue is that sometimes there are multiple Opens or simultaneous Closes, and I would like each one to be correctly notified. I'm thinking of using `ontrade()` - but I'm having trouble using this function

Script / Function - Last Candle = buy candle or sell candle .

Hi everyone. I don't know how to express my problem. I managed to get the value of the last candle called LastCandleNb. if it is >0 then bullish candle. if <0 then bearish candle. I can do it live. if (LastCandleNb> 0 ) Comment ( "Buy Candle" ); else Comment ( "Sell Candle" ); But I