Forum

histogram difference with macd

I want macd to close all positions if the histogram difference is 0.00050. The code should be very simple. I will integrate it into my robot. I have shown it with the attached picture . The only condition is that if the difference between the macd line and the histogram is 0.00050, all positions are

oninit error

hello, i added additional feature to my robot. but oninit gave the hero. I merged oninit and the problems increased. Can you help me edit? i add the codes