Forum

wrong sign in the difference between 2 double numbers

void setPipsGained(){ double difference; int pipsGained; for ( int i= PositionsTotal ()- 1 ;i>= 0 ;i--){ // returns the number of current position if (positionInfo.SelectByIndex(i)){ // selects the position by index for further access to its properties

error in the difference between two double numbers

it's a simple question, try to make the difference between two double numbers and tell me if you also get an error in the result. for example I am subtracting the current and previous value of a sma and the result is wrong. bool isSlowSMALessThanPrevoious(){ double actualSMAPrice =

Point() returns non double number

I'm using the Point () function for a take profit calculation . On USDJPY it returns me 0.001 but on EURUSD and GBPUSD it returns me "le-05". What happen

heiken ashi ea problem

hi, i'm making an expert advisor based on heiken ashi candle signals. As an indicator I am using "Heiken_Ashi.mq5", found here in the code base section, you will find it attached. While I am writing the ea. The ea, for now, should go to buy or close sell positions when the last finished candle is