what is wrong with my code? - page 2

 

NO it is not the same......

Look again

MA Cross.....

                // Buy order 
                if(FastMA > SlowMA && BuyTicket == 0)
   
//...  and
                // Sell Order 
                if(FastMA < SlowMA && SellTicket == 0)

Your Wrong Code..... You have made

             // Buy order             
             if(MedianIndi > FastMA && BuyTicket == 0)

//.... and
             // Sell Order
             if(FastMA < MedianIndi && SellTicket == 0)

That is not done the same way .......

 

You are absolutely right.


Problem solved.


Thanks for all the help folks.

Reason: