Hello
I just read in IB document that we can send a Stop Limit Order
If I understand well:
The stop will triggerd the lookout for the limit Price. This way, i could limit my slippage
If my understanding is ok, how do I code that?
Martin
How to code for a Stop Limit Order
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: How to code for a Stop Limit Order
Stop Limit orders will be supported in MultiCharts 7Hello
I just read in IB document that we can send a Stop Limit Order
If I understand well:
The stop will triggerd the lookout for the limit Price. This way, i could limit my slippage
If my understanding is ok, how do I code that?
Martin
a syntax example:
Code: Select all
Buy 14 shares next bar 10.4 stop 10.7 limit;
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: How to code for a Stop Limit Order
Dear Martin,
Currently we are testing Pre-Alpha version of MC 7. Public Beta should be available soon. However, there is no ETA at the moment.
Currently we are testing Pre-Alpha version of MC 7. Public Beta should be available soon. However, there is no ETA at the moment.
Re: How to code for a Stop Limit Order
Why You dont use trigger for set limit order?Hello
I just read in IB document that we can send a Stop Limit Order
If I understand well:
The stop will triggerd the lookout for the limit Price. This way, i could limit my slippage
If my understanding is ok, how do I code that?
Martin
Code: Select all
[intrabarordergeneration = true]
Vars:Trigger(0),Orderprice(0),
intrabarpersist Myclose(0);
Myclose=close;
Trigger = ......;
Orderprice = ......;
if Myclose crosses above/below trigger then
buy next bar Orderprice limit;
Re: How to code for a Stop Limit Order
Why You dont use trigger for set limit order?
Thank Rommi
I will see if i could use this way.
For sure, i want my entry and stops to reside on IB server. Trading targets as to be on broker site even after MC as been shut down.
As stated, version 7 should take care of this type of Stop / Limit entry situation
Martin
Code: Select all
[intrabarordergeneration = true]
Vars:Trigger(0),Orderprice(0),
intrabarpersist Myclose(0);
Myclose=close;
Trigger = ......;
Orderprice = ......;
if Myclose crosses above/below trigger then
buy next bar Orderprice limit;
I will see if i could use this way.
For sure, i want my entry and stops to reside on IB server. Trading targets as to be on broker site even after MC as been shut down.
As stated, version 7 should take care of this type of Stop / Limit entry situation
Martin