
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
Finally done it - Christ almighty. I feel so stupid looking at it now!
Just something to think about
So you're right. To be perfectly honest, I have tried understanding the "Point" built in variable, but I actually don't understand its purpose to the if statement.
This will sound horrifying to some, but I use it because many moons ago I read a large article on comparing doubles (think it was by WHRoeder - could be wrong) and I noticed that in there. Then someone told me in a post to do it.
There isn't much information on Point within the referencing doc.
+ or - Point at the end of an 'double' equality statement... What does this change? Is it just telling the if statement to be "point size of the current symbol in the quote currency", i.e. in my case, 5 decimal places?
Thanks for your input Gumrai, have swapped it over. Works fine!
It trails, but before the second target is hit by the bid, it actually jumps to the different MA trail? "MA2" below?
I think what is happening is on the very first trade taken, on the FIRST loop, it selects OrderMagicNumber1 and therefore cannot find the TakeProfit_2 price. Therefore, it is set to "0". When it gets to:
TakeProfit_2 - Point
I think your math is a bit wrong. Do you know what and how to use Point ?Point in this case means how many digits after dot. If it is 5 digits means 1*Point = 0.00001
Use Print(Point); to get the point value. From there, what-is-the-distance-you-want * Point
The 5th digit means 1/10 of 1.
Would you mind taking a look at this? It seems to work flawlessly on the OP_BUY side by not on the OP_SELL side? Basic symmetry here but I cannot spot the difference. I apologize; it's a little messy!
To be specific, it almost ignores everything below on the sell side. As soon as the OP_SELLSTOP turns into OP_SELL it switches straight to the very last OrderModify function at the bottom with the "new_SSL_3" price!?