Add to stochastic rsı my ea

 

Hello, I want to add additional features to my robot. Sell if the k line on stochastic rsi crosses below 80. I wrote this condition as follows. but it didn't. Could you help?



else if(CountOpenedPositions("buy")!=0 && 

     (signal == "sell" || 
     ((InpKPeriod(0) > 80.0 and InpKPeriod(1) < 80.0 ))) {CloseAllOrders("sell"); Comment("Closed By stochastic");}
     
    
 

Do not double post!

Post in the correct section, your question is about an EA so why did you post your new topic under "Trading Systems"?

I have deleted your duplicate topic!