maxdoer: Firstly apologies for my simplistic coding error. A search of some other posts found some help regarding the error but not for my specific question and i have tried a few alternatives. What i want to do is place a buy stop, a specific number of pips away from the ask. Below is where i am at, but i an getting the "OrderSend error 4107".
What do you think you get when you do this?
NormalizeDouble(Ask + PriceBuffer,Digits)Normalize (1.54321 + 25 ), Limited to 4/5 Decimals.
maxdoer:
So if you were Buying GBPUSD you would buy at 1.636 + 25 = 26.636 ? what is the value of your trailingStop variable ?
Hello,
Firstly apologies for my simplistic coding error. A search of some other posts found some help regarding the error but not for my specific question and i have tried a few alternatives. What i want to do is place a buy stop, a specific number of pips away from the ask. Below is where i am at, but i an getting the "OrderSend error 4107".
maxdoer:
Multiply by Point
Thankyou both very much, i see what i was doing now. That was stupid, i have to probably set my price buffer to get it to ASK + 0.0025
@raptorUK - The trailing stop is variable that by default is set to 200 pips. I will have to also get the entry fixed so it removes 0.0200 instead of 200.
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
Hello,
Firstly apologies for my simplistic coding error. A search of some other posts found some help regarding the error but not for my specific question and i have tried a few alternatives. What i want to do is place a buy stop, a specific number of pips away from the ask. Below is where i am at, but i an getting the "OrderSend error 4107".
Thanks in advance,
Maxdoer