Reply

Problem with Open P/L converted to real pips

0 replies

Julianrob

Customer, bbp_participant, community, 54 replies.

Visit profile

9 years ago #113099

HI

 

I have written a simple program for the renko chart, where I’d like the exit of a trade to be on the appearance of an opposite direction candle, if it’s up to 5 bars since the order open price, or if there are 6 bars or more in profit, to close the trade when a candle closes below the 7 EMA.

 

I have written it attached here, but It’s trying to open buy and close trades and closes them right away before the price moves…

 

Please can you assist me Mark, kindly appreciated.

0