#import "stdlib.ex4"
string ErrorDescription(int error_code);
int RGB(int red_value,int green_value,int blue_value);
bool CompareDoubles(double number1,double number2);
string DoubleToStrMorePrecision(double number,int precision);
string IntegerToHexString(int integer_number);
int start() { int i,counted_bars=IndicatorCounted();//---- i=Bars-counted_bars-1; while(i>=0) { double high =High[i]; double low =Low[i]; double open =Open[i]; double close=Close[i]; ExtMapBuffer1[i]=(close-low)-(high-close); if(ExtMapBuffer1[i]!=0) { double diff=high-low; if(0==diff) ExtMapBuffer1[i]=0; else { ExtMapBuffer1[i]/=diff; ExtMapBuffer1[i]*=Volume[i]; } } if(i<Bars-1) ExtMapBuffer1[i]+=ExtMapBuffer1[i+1]; i--; }//---- return(0); }//+------------------------------------------------------------------+
hello,
thank you very much for help.
I could solve the first problem with your assistance.
I had for the Sell Orders invalid stoploss because I instead of + I use a - to calculate the stoploss fpr Sell orders and that was not right.
But now I don´t now how I can use your second tip to solve my second problem.
My problem is that often bad course for to buy and sells orders are be generated with the OrderSend() function.
The arrows for buy and sales orders stand usually some points over the bars. And I ask myself why, the bars have never reached such high courses if one look at chart, but the orders is made so high.
I am unfortunately absolutely beginner and unfortunately do not get ahead with your second tip.
thank you very much for help.
I could solve the first problem with your assistance.
I had for the Sell Orders invalid stoploss because I instead of + I use a - to calculate the stoploss fpr Sell orders and that was not right.
But now I don´t now how I can use your second tip to solve my second problem.
My problem is that often bad course for to buy and sells orders are be generated with the OrderSend() function.
The arrows for buy and sales orders stand usually some points over the bars. And I ask myself why, the bars have never reached such high courses if one look at chart, but the orders is made so high.
I am unfortunately absolutely beginner and unfortunately do not get ahead with your second tip.
Is this tip also meant for my second problem?
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
I have a problem with order to open by the EMA_CROSS Script from Coders Guru.
I often get the message: "Error opening SELL order error 130" of GetLastError() function back.
I do not point why, here the code, some changes has I made in the code :