hi everyone, is any developer available to write a SETPEG function, same that TS, for MUlticharts easy language code tks
SetPeg
SetPegis an advanced order feature of the ECN’s that allows you to place a dynamic limit order that always stays on the best bid or best ask up or down to a set limit amount. The SetPeg order can be placed to peg to the best bid/ask or a midpoint between the bid and ask. If the market moves, your order is automatically canceled and moved to the new best bid or ask. These are the EasyLanguage constants used with SetPeg: 0 = PegDisable (Disable Peg Feature)1 = PegBest (Best Bid for a Buy, Best Ask for a Sell Short)2 = PegMid (Mid Price for both Buy and Sell Short)Usage
Example:
If lastbaronchart the begin
SetPeg(PegBest);
Buy next bar at InsideBid +.10 Limit;
SetPeg(PegDisable);
End;
In this example, a dynamic limit order is created up to .10 above the current inside bid and then the feature is disabled.
Note: Look in the EasyLanguage Dictionary and TS User Guide for a complete listing of Strategy AdvancedOrder reserved words and details on how they can be used