Forum

CCIValue as Stop Loss or Take Profit

Hi, I wrote an EA which uses the CCI Indicator. When CCIValue > 120 then it opens a Buy Position and if it is <-120 it opens a sell Position example code: if(CCIValue> 120) signal="buy"; if(CCIValue< -120) signal="sell"; -------------------------------------------------- if(signal=="sell" &&