NexusFi: Find Your Edge


Home Menu

 





Getting Live triggers to csv file


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one ilu007 with 2 posts (0 thanks)
    2. looks_two ABCTG with 2 posts (1 thanks)
    3. looks_3 Jura with 1 posts (1 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 1,685 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Getting Live triggers to csv file

  #1 (permalink)
 ilu007 
New York + US
 
Experience: Intermediate
Platform: MultiCharts
Trading: Indian Stocks
Posts: 37 since Aug 2015
Thanks Given: 10
Thanks Received: 2

Dear Traders,

I am using Multicharts platform and I have strategies coded in Easy language. I need to automate the trade. Since all the brokers in India does not have bridge with Multicharts. However they say that if Multicharts has the capability to convert the live triggers from the chart to .csv file then they are able to fire the order to the Exchange.

Does anyone know whether we can convert the live triggers from the chart to .csv file instantly?

I believe Tradestation has these features but have doubt about MC's capabilites

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Any futures traders in Texas looking to give back to tho …
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
20 thanks
My NQ Trading Journal
17 thanks
Coding money management strategies.
14 thanks
Just another trading journal: PA, Wyckoff & Trends
12 thanks
Daytrading ES & NQ
9 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,626


ilu007,

you will likely have to write the file yourself (i.e. have the code do it) at the moment your order is triggered. Then it would have to be in a format that your broker's software can pick up and execute.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


ilu007 View Post
I am using Multicharts platform and I have strategies coded in Easy language. I need to automate the trade. Since all the brokers in India does not have bridge with Multicharts. However they say that if Multicharts has the capability to convert the live triggers from the chart to .csv file then they are able to fire the order to the Exchange.

Does anyone know whether we can convert the live triggers from the chart to .csv file instantly?

You can use the FileAppend() keyword to write information to a file.

For instance (totally untested):

 
Code
if (longSignal) then begin

  Buy 1 contracts next bar at market;
  
  FileAppend("C:\Temp\TradeLog\SeptemberTrades.csv",
    "Symbol;direction;orderSize");

end;
By the way, I would first get very clear of your broker what they mean with "convert the live triggers from the chart to .csv file then they are able to fire the order to the Exchange". Because once you have the .csv file with the orders on your computer, you'd still need to have some way to send it to your broker.

Since you probably don't want to do that manually (if that would be even possible), this would probably require programming a way to upload this to the broker. And this would complicate things quite a bit.

Reply With Quote
Thanked by:
  #5 (permalink)
 ilu007 
New York + US
 
Experience: Intermediate
Platform: MultiCharts
Trading: Indian Stocks
Posts: 37 since Aug 2015
Thanks Given: 10
Thanks Received: 2

Hey Jura,

Thanks a lot for your comment. Your view make a lot of sense to me. Apart from this option I have other option such as getting Multicharts API for order. MC does provide such API for Automation. Do you have any information about this whether it is free API or else I have to shell out some money for it?

Trading Software Development Kits (2nd option from top)

Went through your website tradingcode.net. It looks very promising and I may need some help from you regarding coding in Multicharts.



Jura View Post
You can use the FileAppend() keyword to write information to a file.

For instance (totally untested):

 
Code
if (longSignal) then begin

  Buy 1 contracts next bar at market;
  
  FileAppend("C:\Temp\TradeLog\SeptemberTrades.csv",
    "Symbol;direction;orderSize");

end;
By the way, I would first get very clear of your broker what they mean with "convert the live triggers from the chart to .csv file then they are able to fire the order to the Exchange". Because once you have the .csv file with the orders on your computer, you'd still need to have some way to send it to your broker.

Since you probably don't want to do that manually (if that would be even possible), this would probably require programming a way to upload this to the broker. And this would complicate things quite a bit.


Started this thread Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,626

ilu007,

the API is not free unfortunately. I don't recall the exact amount, but is was something like 5-10k $. The others prices published under the link will give you an idea what to expect.
Keep in mind that any programming would be on top of that as you'd still need to write (have someone write) the code to connect MC to your broker.

Regards,

ABCTG


ilu007 View Post
Apart from this option I have other option such as getting Multicharts API for order. MC does provide such API for Automation. Do you have any information about this whether it is free API or else I have to shell out some money for it?


Follow me on Twitter Reply With Quote




Last Updated on September 17, 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