NexusFi: Find Your Edge


Home Menu

 





Back Test Only Loop


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one GuppyDRV with 3 posts (0 thanks)
    2. looks_two marpol with 2 posts (1 thanks)
    3. looks_3 ABCTG with 1 posts (0 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 2,243 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7

Is it possible to code a portion of a strategy that only runs when back testing? I know a strange concept but can it be done.

I'm just making this up to demonstrate!

If Backtest then Begin

//logic code only when Back Testing;

End;


GuppyDRV


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
$500M Riding on World Cup 2026: France/Spain Co-Favored …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
 
  #3 (permalink)
 marpol 
San Francisco, CA
 
Experience: Advanced
Platform: IB-TWS, Ninja, Wave59, R
Broker: IB, IQFeed
Trading: ZB
Posts: 37 since Sep 2013
Thanks Given: 0
Thanks Received: 26


in Ninjatrader yes....dont know about multi charts.

if you have iqfeed you can get NT8 for free connect your datafeed and your good to go.....although you will need to program in C# its not that hard.


Reply With Quote
Thanked by:
  #4 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7

I use NT8 now to trade manually and am at a basic level with C# so prefer Easy/power language. Hoping someone might have a lead on this or maybe point me to a thread somewhere that address the issue.

Thanks for the help.

GuppyDRV


Started this thread Reply With Quote
  #5 (permalink)
 marpol 
San Francisco, CA
 
Experience: Advanced
Platform: IB-TWS, Ninja, Wave59, R
Broker: IB, IQFeed
Trading: ZB
Posts: 37 since Sep 2013
Thanks Given: 0
Thanks Received: 26

Sorry OP.....I did not see the category when i replied. I don't know easylanguage so I don't know if it has that capability. Was not trying to push NT either....I just know that it has the capability.


Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

GuppyDRV,

as far as I am aware you can only use
 
Code
GetAppInfo( aiOptimizing )
to detect an optimization, but not a backtest.

This leaves you the option of an input that you enable manually or you define what you mean when you say
backtest. For example when you say everything that occurred not on live data is considered a backtest you could check for live data and only execute your code block when the data is not live:
 
Code
GetAppInfo( aiRealTimeCalc )
Regards,

ABCTG


GuppyDRV View Post
Is it possible to code a portion of a strategy that only runs when back testing? I know a strange concept but can it be done.

I'm just making this up to demonstrate!

If Backtest then Begin

//logic code only when Back Testing;

End;


GuppyDRV


Follow me on X Reply With Quote
  #7 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7

@ABTCG

O.K. I think I see where you're going with this. Kind of a back door approach. I'll play around with this the next few days. Thanks again for the point.

GuppyDRV


Started this thread Reply With Quote




Last Updated on April 10, 2017


© 2026 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 - Downloads - Top
no new posts