Recent content by MichaelMano

  1. MichaelMano

    coding logic inquiry

    is there a reason why it should be coded this way in order to get the required result I was trying to create a condition to check if either the type of trade is position buy or sell and below is the outcome if(OrderType() == (OP_BUY || OP_SELL)) >>>>>>> did not work properly if(OrderType() ==...
  2. MichaelMano

    Need help to understand this please

    I need some advice for the below code if you please, Period_MA is an external variable and I set it to 20, but when I am testing my code by changing for(x=i; x<i+Period_MA; x++) to for(x=i; x<=i+Period_MA; x++) the moving average disappear from the chart int Counted_Bars =...
  3. MichaelMano

    I need help to understand the solution I figure out by chance to problem I had with my code

    I had a problem with the EA that when I used the function created, the EA would execute only the buy orders and for the sell order it sends to the journal the note that I mention in else, for sell execution, but after I deleted the below underlined 2 lines it executed both sell and buy order. I...
Back
Top