NexusFi: Find Your Edge


Home Menu

 





Does Multicharts support Tradestation .placeorder OCO macro syntax?


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one beezer1 with 3 posts (0 thanks)
    2. looks_two westmalle with 1 posts (0 thanks)
    3. looks_3 JohniFx with 1 posts (0 thanks)
    4. looks_4 sptrader with 1 posts (0 thanks)
    1. trending_up 1,969 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Does Multicharts support Tradestation .placeorder OCO macro syntax?

  #1 (permalink)
beezer1
San Jose CA
 
Posts: 3 since Jan 2014
Thanks Given: 3
Thanks Received: 0

Hi all. I am considering moving from Tradestation to Multicharts & Rithmic, mainly due to being spooked out too much by Tradestation execution weirdness. I also want to eventually port my strategies to my own custom C++ client using Rithmic's R|API but that is another issue alltogether.

Similar to what was mentioned in a previous post here, my automated strategy creates an OCO bracket order via creating and calling a .placeorder macro. Can anybody tell me if Multicharts supports doing this?

Here's a small example of the syntax for a .placeorder macro in TS:

 
Code
OrderName = rightstr(myAccountId,2)+"-"+rightstr(numtostr(fracportion(computerdatetime),5),5)+OrderTag+"b";  	
OrderString = ".PlaceOrder " + DoubleQuote;   								 
OrderString = OrderString + "Account='" + myAccountId + "', ";   									 
OrderString = OrderString + "SymbolCategory='Future', ";   									 
OrderString = OrderString + "Duration='Day', ";   									 
OrderString = OrderString + "Symbol='" + mySymbol + "', "; 
OrderString = OrderString + "Action='Sell',"; 
OrderString = OrderString + "OrderType='Limit',"; 
OrderString += "LimitPrice="+numtostr(ptPrice,8)+","; 
OrderString = OrderString + "Quantity="+numtostr(myNumContracts,0)+","; 
OrderString = OrderString + "OSOTriggerBy= '"+parentOrderName+"',"; 
OrderString = OrderString + "OCOBracketName= '"+parentOrderName+"',"; 
OrderString = OrderString + "OrderName='"+OrderName+"'"+DoubleQuote;

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Quant vue
Trading Reviews and Vendors
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #2 (permalink)
beezer1
San Jose CA
 
Posts: 3 since Jan 2014
Thanks Given: 3
Thanks Received: 0

It's probably worth noting that I am executing this macro from within a chart indicator - one of Tradestation's many workarounds for various issues. I'd also like to know if Multicharts can do the same.

Reply With Quote
  #3 (permalink)
JohniFx
Hungary
 
Posts: 72 since Nov 2014
Thanks Given: 118
Thanks Received: 46



beezer1 View Post
Hi all. I am considering moving from Tradestation to Multicharts & Rithmic, mainly due to being spooked out too much by Tradestation execution weirdness. I also want to eventually port my strategies to my own custom C++ client using Rithmic's R|API but that is another issue alltogether.

Similar to what was mentioned in a previous post here, my automated strategy creates an OCO bracket order via creating and calling a .placeorder macro. Can anybody tell me if Multicharts supports doing this?

Here's a small example of the syntax for a .placeorder macro in TS:

 
Code
OrderName = rightstr(myAccountId,2)+"-"+rightstr(numtostr(fracportion(computerdatetime),5),5)+OrderTag+"b";  	
OrderString = ".PlaceOrder " + DoubleQuote;   								 
OrderString = OrderString + "Account='" + myAccountId + "', ";   									 
OrderString = OrderString + "SymbolCategory='Future', ";   									 
OrderString = OrderString + "Duration='Day', ";   									 
OrderString = OrderString + "Symbol='" + mySymbol + "', "; 
OrderString = OrderString + "Action='Sell',"; 
OrderString = OrderString + "OrderType='Limit',"; 
OrderString += "LimitPrice="+numtostr(ptPrice,8)+","; 
OrderString = OrderString + "Quantity="+numtostr(myNumContracts,0)+","; 
OrderString = OrderString + "OSOTriggerBy= '"+parentOrderName+"',"; 
OrderString = OrderString + "OCOBracketName= '"+parentOrderName+"',"; 
OrderString = OrderString + "OrderName='"+OrderName+"'"+DoubleQuote;

grrr. such a string concatenation I have to drink something quickly.

anyway multichart has its own bracket order from charts which i find pretty awesome and intuitive as well. you 'll like am sure you will pretty much like it just give it a try


Reply With Quote
  #4 (permalink)
beezer1
San Jose CA
 
Posts: 3 since Jan 2014
Thanks Given: 3
Thanks Received: 0

Thanks for replying JohniFx. It's good to know that MC supports bracket orders.

I'm an aspiring auto trader who is quite heavily invested in EasyLanguage, and I am just wondering how much effort it will take to port my code to MultiCharts. If a lot of what I do is not supported in MC's implementation of EasyLanguage then I'm willing to bite the bullet and just re-write all my stuff in C++.

Reply With Quote
  #5 (permalink)
 westmalle 
Eindhoven The Netherlands
 
Experience: Intermediate
Platform: Sierra, NinjaTrader
Trading: TF NQ YM 6E ES
Posts: 52 since Mar 2013
Thanks Given: 55
Thanks Received: 40

JohniFX (or other Multichart user).

Is there a way to implement the bracket OCO order in Multicharts by using the amount of ticks price moved to trigger the stoploss to move to breakeven plus 1?

This scenario:
Contract 1: Target +4 ticks, stoploss -10 ticks. When price moves in the anticipated direction for 4 ticks, then the stoploss will move from its original position of -10 ticks to breakeven plus 1 tick. So when price moved +4 ticks I want the stoploss to move, I do not want to wait until the target at +4ticks is filled.
Contract 2: Target +5 ticks, stoploss -10 ticks. When price moves in the anticipated direction for 4 ticks, then the stoploss will move from its original position of -10 ticks to breakeven plus 1 tick. So when price moved +4 ticks I want the stoploss to move.

Thanks in advance

Reply With Quote
  #6 (permalink)
 
sptrader's Avatar
 sptrader 
Colorado
 
Experience: Advanced
Platform: MultiCharts
Broker: IB & Iqfeed
Trading: ES , CL
Posts: 535 since Apr 2010
Thanks Given: 1,097
Thanks Received: 701

These questions are best asked in the Multicharts forum, they are very helpful....

http://www.multicharts.com/discussion/viewforum.php?f=1

Reply With Quote




Last Updated on April 13, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts