Forum

Code opening and closing hundreds of orders

Hello I have the code below. I get a crossover from an indicator and open 1 order at a time. I want to also close the order when the indicator reaches the overbought or oversold area, (>50) but after it does so it opens and close Many orders. Can anyone help? void OnTick () { string signal= "" ;

Rate of Change

Hello Has anyone tried to code the Price Rate of Change in an Advisor? Can you please share the code