I did a search for 'breakout' & 'line' & didn't find anything likely.
It seems to be a ForexFactory program - maybe ask there.
It's not that we won't help you, just that I'm not prepared to rummage any deeper to do what you should be doing yourself. This is more of a "we'll help you to help yourself" group rather than "we're a bunch of slaves ready to do your bidding". Then again, we're all individuals here & you might find someone willing to help you more than I have.
Oh, and offering money will probably get more offers of help.
double offset = 5; ... void init() { if(Digits == 5 || Digits == 3) { offset = offset / MathPow(10,Digits - 1); } else if(Digits == 4 || Digits == 2) { offset = offset / MathPow(10,Digits); } } ... ... long_entry = highBOL + offset; short_entry = lowBOL - offset;
hi fxcourt,
thanks so much, I'll try
offset = offset / MathPow(10,Digits - 1);For 5 digit brokers, you must adjust TP, SL, and slippage
//++++ These are adjusted for 5 digit brokers. double pips2points, // slippage 3 pips 3=points 30=points pips2dbl; // Stoploss 15 pips 0.0015 0.00150 int Digits.pips; // DoubleToStr(dbl/pips2dbl, Digits.pips) int init(){ if (Digits == 5 || Digits == 3){ // Adjust for five (5) digit brokers. pips2dbl = Point*10; pips2points = 10; Digits.pips = 1; } else { pips2dbl = Point; pips2points = 1; Digits.pips = 0; } // OrderSend(... Slippage.Pips * pips2points, Bid - StopLossPips * pips2dbl
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
how i do to add 5 pip offset to the high and low breakout line, thanks