NexusFi: Find Your Edge


Home Menu

 





Issue with Multiple Frequencies


Discussion in TradeStation

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




 
Search this Thread
  #1 (permalink)
OslerJ
New York City, New York, USA
 
Posts: 3 since Mar 2013
Thanks Given: 0
Thanks Received: 0

Hi, I can't figure out this problem and have finally given up after searching the forums. I'm trying to build a basic swing system that uses three frequencies to enter a position. The problem is that when I reference the third frequency - Data3 - to generate an SMA, I can't seem to enter a position. I confirmed this is the issue by commenting out the reference to Data3. The buy order is simply for debug purposes.

Here's my code:

 
Code
Inputs: alpha(.07), SMA_Length ( 20 ), ATR_Length ( 14 ); 

Vars: LeadSine ( 0 ), MySMA ( 0 ), MyATR ( 0 ), NormSine ( 0 ), LSine ( 0 ), NSine ( 0 ), x ( 0 );

NSine = TrailSine (High, Low, alpha) of Data2;

LeadSine = NSine + 45;

NormSine = Sine ( NSine );
LSine = Sine ( LeadSine );

MyATR = AvgTrueRange( ATR_Length ) of Data2;

MySMA = Average ( Close , SMA_Length) of Data3;

buy ("Open_L") next bar at open;
Sell this bar on close;
Any thoughts would be appreciated.

Thanks!

Never mind. Seems to be working now


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
Would a node-based workflow for automated trading be useful?
Traders Hideout
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
 
  #2 (permalink)
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,585 since Aug 2011
Thanks Given: 2,095
Thanks Received: 9,704

There is a thread...Want your ninja trader script created....or something like that. It is a very popular thread. If this one doesnt grab the attention you need, try that thread. Best of luck with the script. DB


Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
OslerJ
New York City, New York, USA
 
Posts: 3 since Mar 2013
Thanks Given: 0
Thanks Received: 0


It's actually not working. I was looking at the wrong window. No, I would not like someone to script it for me, but was hoping someone knew the issue / solution.


Reply With Quote
  #4 (permalink)
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,585 since Aug 2011
Thanks Given: 2,095
Thanks Received: 9,704

in that direction. Guys that hang in that thread can answer in a heartbeat.


Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
OslerJ
New York City, New York, USA
 
Posts: 3 since Mar 2013
Thanks Given: 0
Thanks Received: 0

Oh, ok. Which thread are you referring to?


Reply With Quote
  #6 (permalink)
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,585 since Aug 2011
Thanks Given: 2,095
Thanks Received: 9,704

hang in here. This will be a snap.



Please note it is EL not C#...someone can handle it pretty quick either way.


Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
 
Harlequin's Avatar
 Harlequin 
Jakarta
 
Experience: Intermediate
Platform: Sierra
Trading: Bund
Posts: 27 since Jan 2013
Thanks Given: 9
Thanks Received: 13

since this thread is posted on TS section i would suggest to look for solution about your issue here:


Reply With Quote




Last Updated on March 1, 2013


© 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