sir i just wanted to place a stop order with permanent stop of 11.2 pips..i have a five digit broker...so i put r3 as 112 pips...but mt4 always placed it at 3 pips..the value of r3 doesnt change i have cnfirmed by print()
Ankit,
Aight, you can try something like this-
double SL=112; // if conditions are met... OrderSend(Symbol(),OP_BUY,0.10,Ask,30,SL,0,"",12345,0,Blue);
I'm thinkin' your other code is getting involved with 'r3'. Also, consider writing code as simple as possible so you don't get overwhelmed by code. Single comments announcing purpose of code blocks below should be above each code block to assist your eyes as you scan your code.
Thank you
does this happen?? code interference???
Please clearly explain your meaning.
Thank you
hello;
in the below code i have put r3 =112..but in metatrader stratagy tester sl for order is not placed accourdingly that ..i have tried every thing..please have a see and help wat should i do..??
sl should be placed 11.2 pips below but it is palcing it only 3 pips down...
Can you please use these Trade Constants I know what OP_BUYSTOP means I don't know what 4 means . . .
What was your spread ?
Can you please use these Trade Constants I know what OP_BUYSTOP means I don't know what 4 means . . .
What was your spread ?
i have a ecn account and spread on usd/jpy are less than 1.5....
OP_BUYSTOP is equal to integer 4 and OP_SELLSTOP is equal to 5...
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hello;
in the below code i have put r3 =112..but in metatrader stratagy tester sl for order is not placed accourdingly that ..i have tried every thing..please have a see and help wat should i do..??
sl should be placed 11.2 pips below but it is palcing it only 3 pips down...