Hi Traders,
There is a little mistake in the code. Please, change this:
double Faktor; int Is_JPY=StringFind(Pairs[h],"JPY",0); if(Is_JPY==-1) Faktor=Point*10; else Faktor=Point*1000; if(ordertype==0) DataVal[h][0]=(CurrentPrice-OrderOpenPrice())/Faktor; else if(ordertype==1) DataVal[h][0]=(OrderOpenPrice()-CurrentPrice)/Faktor;
To
if(ordertype==0) DataVal[h][0]=(CurrentPrice-OrderOpenPrice())/MarketInfo(Pairs[h],MODE_POINT)/10; else if(ordertype==1) DataVal[h][0]=(OrderOpenPrice()-CurrentPrice)/MarketInfo(Pairs[h],MODE_POINT)/10;Cheers
And you could add the sum of the pips and profit?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
JJN-TradeInfo:
Author: Gordon Gekko