NexusFi: Find Your Edge


Home Menu

 





Record Indicator Readings at Time of Trade?


Discussion in Sierra Chart

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




 
Search this Thread

Record Indicator Readings at Time of Trade?

  #1 (permalink)
 
LittleFinger's Avatar
 LittleFinger 
Denver Colorado/USA
 
Experience: Intermediate
Platform: SierraChart
Broker: AMP
Trading: ES
Posts: 116 since May 2017
Thanks Given: 132
Thanks Received: 145

Hello SC users,

I am creating some automated strategies with ACSIL and would like to find an easy way to automatically record the indicator values at the time of trade execution. I am just backtesting right now and not running anything live.

To elaborate, if I have ATR and ADX indicators on a chart and I run a backtest of a system on that chart, I would like to create a list of the readings of ATR and ADX at each trade entry and exit.

Has anyone heard of a way to do this?

-LF

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
 ocpb 
Hartford CT, USA
 
Experience: Beginner
Platform: None
Trading: ES
Posts: 126 since Jan 2015
Thanks Given: 152
Thanks Received: 125


LittleFinger View Post
Hello SC users,

I am creating some automated strategies with ACSIL and would like to find an easy way to automatically record the indicator values at the time of trade execution. I am just backtesting right now and not running anything live.

To elaborate, if I have ATR and ADX indicators on a chart and I run a backtest of a system on that chart, I would like to create a list of the readings of ATR and ADX at each trade entry and exit.

Has anyone heard of a way to do this?

-LF

A spreadsheet in SC would likely be the easiest way to implement something to record the info.

So, just brainstorming: maybe your system would incorporate an array that represents, for each consecutive bar, whether the system is in a trade or not. For instance, 0 means flat, 1 means long and -1 means short. Then add a spreadsheet study that is "based on" your system study, it specifically accesses this trade status variable within the system. This spreadsheet should update with a new row upon any change in this "signal" (i.e. last bar was non-zero , this bar is zero, means position exited.) When adding a row, also grab the current indicator values you'd like, as columns. You may want to force the spreadsheet to automatically clear out the rows (or add a new timestamped heading row) each time the backtest is run.

Reply With Quote
Thanked by:
  #3 (permalink)
 
LittleFinger's Avatar
 LittleFinger 
Denver Colorado/USA
 
Experience: Intermediate
Platform: SierraChart
Broker: AMP
Trading: ES
Posts: 116 since May 2017
Thanks Given: 132
Thanks Received: 145



ocpb View Post
A spreadsheet in SC would likely be the easiest way to implement something to record the info.

So, just brainstorming: maybe your system would incorporate an array that represents, for each consecutive bar, whether the system is in a trade or not. For instance, 0 means flat, 1 means long and -1 means short. Then add a spreadsheet study that is "based on" your system study, it specifically accesses this trade status variable within the system. This spreadsheet should update with a new row upon any change in this "signal" (i.e. last bar was non-zero , this bar is zero, means position exited.) When adding a row, also grab the current indicator values you'd like, as columns. You may want to force the spreadsheet to automatically clear out the rows (or add a new timestamped heading row) each time the backtest is run.


Thanks for the suggestion! I decided to use the spreadsheet study. Since it displays all of the indicator values at the close of the bar for every row you load, I am just going to copy the entirety of the sheet into excel. Then I'm going to import the trade activity log txt file into excel and create a macro that appends the indicator values to the trade data based on a time of trade match.

At some point I may attempt to code it in to the spreadsheet as you suggest, but this will probably be more flexible for analysis purposes right now.

Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 ocpb 
Hartford CT, USA
 
Experience: Beginner
Platform: None
Trading: ES
Posts: 126 since Jan 2015
Thanks Given: 152
Thanks Received: 125


LittleFinger View Post
Thanks for the suggestion! I decided to use the spreadsheet study. Since it displays all of the indicator values at the close of the bar for every row you load, I am just going to copy the entirety of the sheet into excel. Then I'm going to import the trade activity log txt file into excel and create a macro that appends the indicator values to the trade data based on a time of trade match.

At some point I may attempt to code it in to the spreadsheet as you suggest, but this will probably be more flexible for analysis purposes right now.

Excel-ent.

Reply With Quote




Last Updated on March 14, 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