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
Hi, my Interbank FX platform recently switched to 5 decimals, so I modified my Point() function as follow:
double Point()
{
if (Symbol()=="EURUSD"||Symbol()=="USDCHF"||Symbol()=="USDCAD"||Symbol()=="GBPUSD"||Symbol()=="EURCHF"||Symbol()=="AUDUSD"||Symbol()=="EURGBP")
Point = 100000 ;
if (Symbol()=="EURJPY"||Symbol()=="USDJPY"||Symbol()=="CHFJPY")
Point = 1000 ;
return (Point);
}
Before this my experts worked correctly, but now the don't work anymore. If i run a backtest with them they work correctly but when I attach them on a graph they don't work. If I write the Ordersend function as follow:
OrderSend(Symbol(),OP_BUY,Lots_Long,Ask,NULL,Stop_Long,NULL,"1H",3,Green) ;
the expert doesn't work, but if I write
OrderSend(Symbol(),OP_BUY,Lots_Long,Ask,NULL,NULL,NULL,"1H",3,Green) ;
leaving the stop loss as NULL the expert opens new orders correctly. I don't understand where is the problem because the stop is far from bid price, so I don't think the stop is too small.
Could you help me? Thank you very much!