How can I set the parameters of MarketRangeOrder, who can give me an example?
How can I set the parameters of MarketRangeOrder, who can give me an example?
26 Jul 2019, 10:16
Using EURUSD as examples:
I can accept any price opening between 1.11305 and 1.11365
so,What is the value of baseSlippagePrice and slippageInPoints ?
Replies
158197794
26 Jul 2019, 10:34
RE:
Panagiotis Charalampous said:
Hi 158197794,
Thanks for posting in our forum. You can use baseSlippagePrice = 1.11305 and slippageInPoints = 30.
Best Regards,
Panagiotis
thank you .
so, for EURUSD, a points = 0.00001?
for GBPJPY , if I can accept any price opening between 135.029 and 135.129 , I can use baseSlippagePrice = 135.029 and slippageInPoints = 50 ?
@158197794
PanagiotisCharalampous
26 Jul 2019, 10:37
Hi 158197794,
Yes this is correct.
Best Regards,
Panagiotis
@PanagiotisCharalampous
158197794
26 Jul 2019, 10:51
RE:
Panagiotis Charalampous said:
Hi 158197794,
Yes this is correct.
Best Regards,
Panagiotis
There seems to be some problems 。
just now , GBPJPY market price ,ask = 135.092.
and I can accept any price opening buy,between 135.014 and 135.094. so I send a
MarketRangeOrder, and set baseSlippagePrice = 135.014 and slippageInPoints = 40 ,
but, I receive PROTO_OA_EXECUTION_EVENT, and executiontype = ORDER_CANCELLED。
@158197794
PanagiotisCharalampous
26 Jul 2019, 11:08
Hi 158197794,
The order is cancelled because you ser as baseSlippagePrice = 135.014 and slippageInPoints = 40 which makes the limit 135.054 while the market price is 135.092 therefore the order is cancelled.
Best Regards,
Panagiotis
@PanagiotisCharalampous
158197794
26 Jul 2019, 11:13
RE:
Panagiotis Charalampous said:
Hi 158197794,
The order is cancelled because you ser as baseSlippagePrice = 135.014 and slippageInPoints = 40 which makes the limit 135.054 while the market price is 135.092 therefore the order is cancelled.
Best Regards,
Panagiotis
But I just asked you above:
for GBPJPY , if I can accept any price opening between 135.029 and 135.129 , I can use baseSlippagePrice = 135.029 and slippageInPoints = 50 ?
You said it is correct。
so , if I can accept any price opening buy,between 135.014 and 135.094.
set baseSlippagePrice = 135.014 and set slippageInPoints = 80?
@158197794
PanagiotisCharalampous
26 Jul 2019, 11:18
Hi 158197794,
Sorry I didn't notice the price well. I made a typo in my first answer, should have been baseSlippagePrice = 1.11335. In that case the slippage price should be baseSlippagePrice = 135.079
Best Regards,
Panagiotis
@PanagiotisCharalampous
158197794
26 Jul 2019, 11:22
RE:
Panagiotis Charalampous said:
Hi 158197794,
Sorry I didn't notice the price well. I made a typo in my first answer, should have been baseSlippagePrice = 1.11335. In that case the slippage price should be baseSlippagePrice = 135.079
Best Regards,
Panagiotis
I understand, thank you very much.
@158197794
158197794
04 Aug 2019, 10:23
( Updated at: 21 Dec 2023, 09:21 )
RE:
Panagiotis Charalampous said:
Hi 158197794,
Sorry I didn't notice the price well. I made a typo in my first answer, should have been baseSlippagePrice = 1.11335. In that case the slippage price should be baseSlippagePrice = 135.079
Best Regards,
Panagiotis
HI ,Panagiotis
I have found another problem, in here,
If I buy 100k, it show one pip value is $9.38, so , This means when the price changes, 1 pips means 0.01.
so, when I set market range to 5.0 pips, This means that the specified range of prices is 129.697- 0.05 to 129.697+0.05.
but ,Follow the advice you gave above,If I use API, I must set baseSlippagePrice = 129.697,and slippageInPoints = 50.
so, in this parameter: slippageInPoints , one point = 10* one pips ?
@158197794
PanagiotisCharalampous
05 Aug 2019, 10:08
Hi 158197794,
Yes this is correct. In this case one pip equals to 10 points.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
26 Jul 2019, 10:23
Hi 158197794,
Thanks for posting in our forum. You can use baseSlippagePrice = 1.11305 and slippageInPoints = 30.
Best Regards,
Panagiotis
@PanagiotisCharalampous