NexusFi: Find Your Edge


Home Menu

 





Auto Trade based on difference line and not base chart


Discussion in Sierra Chart

Updated
    1. trending_up 1,416 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 1 attachments




 
Search this Thread

Auto Trade based on difference line and not base chart

  #1 (permalink)
 jokertrader 
NYC, NY
 
Experience: Intermediate
Platform: Sierra, TT
Broker: N/A
Trading: Spread Researcher and crypto degen
Posts: 654 since May 2013
Thanks Given: 545
Thanks Received: 360

I have 2 charts - Chart 1 (10 yr treasuries) and Chart 2 (Ultra 10 year treasuries). I have a 3rd Chart which is a copy of Chart 1 and then have the Difference line indicator as the main graph (so the blue line u see is the actually Difference line)

I am trying to Backtest on this 3rd chart and want the trade values based off the Difference line but it always picks the base symbol from Chart 1 (i.e always calculates on the 10 yr treasuries).

So even though the trade logic works (i.e. signals are evaluated based on the Difference Line) and everything functions, my output, stats all are based on the base symbol which is 10 year treasuries. I want all the output and stats based on the Difference Line.
So P/L and other stats from the backtest should be based on the Difference line values and not the base symbol

As u can see the chart attached, the values are 103.xxx. Also you can see the popup when i click Replay/backtest, it says base it of the 10 year (TYA - CQG symbol). So even though the logic is right, it initiates a trade on the 10 year at the time of the signal and all values are based off the 10 year.. NOT the difference line

Any help appreciated


Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
 
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
31 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
  #2 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 219
Thanks Received: 603

Are you attempting to trade a spread order, where you have positions in both symbols? If so, this might be helpful:
https://www.sierrachart.com/index.php?page=doc/Trade-SpreadOrderEntryStudy.html

Also, the exchange may have a spread symbol, and you could trade it directly.

Are you wanting to enter at the Difference price in one of the Treasuries?
The signal from the Difference chart can only enter at Market in the symbol of the chart where the autotrader is active, and only at the price of that symbol at the time of the signal.
Entering at the Difference price would require placing a Limit or Stop entry order, and it would be in the Treasury symbol where the autotrader is active. And you'd need a way to cancel it if it didn't fill.

Reply With Quote
  #3 (permalink)
 
Sandpaddict's Avatar
 Sandpaddict 
Vancouver, Canada
 
Experience: Advanced
Platform: Ninjatrader, MT4
Broker: IB, Global Prime
Trading: Futures CFDs
Posts: 684 since Mar 2020
Thanks Given: 975
Thanks Received: 637



tomgilb View Post
Are you attempting to trade a spread order, where you have positions in both symbols? If so, this might be helpful:
https://www.sierrachart.com/index.php?page=doc/Trade-SpreadOrderEntryStudy.html

Also, the exchange may have a spread symbol, and you could trade it directly.

Are you wanting to enter at the Difference price in one of the Treasuries?
The signal from the Difference chart can only enter at Market in the symbol of the chart where the autotrader is active, and only at the price of that symbol at the time of the signal.
Entering at the Difference price would require placing a Limit or Stop entry order, and it would be in the Treasury symbol where the autotrader is active. And you'd need a way to cancel it if it didn't fill.

Also... and I dont know if this will help. Its been my experience on other platforms is that the execution takes place on chart1. (Unless otherwise specified)

The other thing is you might need to do is write the code to execute off the spread indicator.

Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 jokertrader 
NYC, NY
 
Experience: Intermediate
Platform: Sierra, TT
Broker: N/A
Trading: Spread Researcher and crypto degen
Posts: 654 since May 2013
Thanks Given: 545
Thanks Received: 360

I am not looking to auto trade but backtest. I can use the exchange spread and superimpose the outrights, use those as buy/sell criteria taking orders on the spread chart for back test but this is not accurate.
So I am trying to back test with the difference values for a more accurate backtest but as I wrote it’s not working as the buy/sell orders and stats are based on the base chart
If this is not clear then I can message u


Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 jokertrader 
NYC, NY
 
Experience: Intermediate
Platform: Sierra, TT
Broker: N/A
Trading: Spread Researcher and crypto degen
Posts: 654 since May 2013
Thanks Given: 545
Thanks Received: 360

I will try reading up on the link u sent if that will help in the backtest stats


Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #6 (permalink)
 jokertrader 
NYC, NY
 
Experience: Intermediate
Platform: Sierra, TT
Broker: N/A
Trading: Spread Researcher and crypto degen
Posts: 654 since May 2013
Thanks Given: 545
Thanks Received: 360

Yes to what sandpaddict said - it’s taking the values from chart 1 for the backtest results


Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #7 (permalink)
 
Sandpaddict's Avatar
 Sandpaddict 
Vancouver, Canada
 
Experience: Advanced
Platform: Ninjatrader, MT4
Broker: IB, Global Prime
Trading: Futures CFDs
Posts: 684 since Mar 2020
Thanks Given: 975
Thanks Received: 637


jokertrader View Post
I am not looking to auto trade but backtest. I can use the exchange spread and superimpose the outrights, use those as buy/sell criteria taking orders on the spread chart for back test but this is not accurate.
So I am trying to back test with the difference values for a more accurate backtest but as I wrote it’s not working as the buy/sell orders and stats are based on the base chart
If this is not clear then I can message u


Sent using the NexusFi mobile app

Please see my comment above. Its super general but might be something in there.

As for the backtesting. Like I mentioned above you can plot 10 year the 2 year the spread on one chart. And write your code to execute on signals from the spread indicator.

Maybe you are you way beyond this point?

Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 219
Thanks Received: 603


Quoting 
I am not looking to auto trade but backtest. ...So I am trying to back test with the difference values for a more accurate backtest

Backtesting something that can't happen when trading isn't going to be more accurate.

Reply With Quote
  #9 (permalink)
 jokertrader 
NYC, NY
 
Experience: Intermediate
Platform: Sierra, TT
Broker: N/A
Trading: Spread Researcher and crypto degen
Posts: 654 since May 2013
Thanks Given: 545
Thanks Received: 360

Thanks guys will report back in a few days after I’ve tried all these


Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on June 7, 2020


© 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