NexusFi: Find Your Edge


Home Menu

 





Array of dates and minutes: how to import them into EasyLanguage?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 845 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Array of dates and minutes: how to import them into EasyLanguage?

  #1 (permalink)
Saturnix
milano, italy
 
Posts: 4 since Feb 2019
Thanks Given: 1
Thanks Received: 0

I have an array of datetimes I can export in whatever format I like:




These could be exported in a file, or as text to copy and paste such as:


Quoting 
Hello world, buy the contract the day 1, of month 3 at time 11:35
Hello world, buy the contract the day 22, of month 3 at time 9:55
Hello world, buy the contract the day 28, of month 3 at time 9:50
Hello world, buy the contract the day 28, of month 3 at time 12:5
Hello world, buy the contract the day 5, of month 10 at time 10:55
Hello world, buy the contract the day 8, of month 10 at time 10:30
Hello world, buy the contract the day 10, of month 10 at time 9:0
Hello world, buy the contract the day 18, of month 10 at time 10:35
Hello world, buy the contract the day 19, of month 10 at time 11:30
Hello world, buy the contract the day 6, of month 12 at time 10:30


I would like to put these signals into EasyLanguage so as to launch a backtest.

I've been told this can be done by telling EL to read a file, put the dates into an array and check if current date is in the array.

Though, I have no idea where such a procedure is documented or explained. I'd need examples but I'm having a hard time finding any.

Thanks!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
32 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,435 since Apr 2013
Thanks Given: 482
Thanks Received: 1,628


Hi Saturnix,

you should be able to find several workable examples for reading file data with the StreamReader class in the Tradestation forum.
The following thread contains an indicator that reads trade data from a file and displays it on chart and might be a good start for you: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=158047

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on April 5, 2019


© 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