Forum

Histogram indicator problem

Hi, I want to make a series of indicators that will be presented as a histogram with three buffers (for long, short and range). I started with a simple one but it looks like I stuck. It is a simple MA. If close [i] is less than the value MA [i] then Sell [i] = 1. What is wrong in the code? Thank

the code don't execute the buy order

Hi! I have a problem with the following code. First part of the if BuySignal == true && SellMarketCount( Symbol (),MagicNumber) == 0 ) runs great, but when i check ForceBuy to true the script don't place the order. Can anyone help me with that? Thx if ((BuySignal == true && SellMarketCount(