NexusFi: Find Your Edge


Home Menu

 





Convert PriceSwing Indicator to Strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one marcelo_s with 12 posts (6 thanks)
    2. looks_two skann with 8 posts (1 thanks)
    3. looks_3 forrestang with 3 posts (0 thanks)
    4. looks_4 RJay with 1 posts (0 thanks)
    1. trending_up 11,262 views
    2. thumb_up 7 thanks given
    3. group 7 followers
    1. forum 28 posts
    2. attach_file 11 attachments




 
Search this Thread

Convert PriceSwing Indicator to Strategy

  #11 (permalink)
NinjaStrategies
Netherlands
 
Posts: 10 since Feb 2011
Thanks Given: 0
Thanks Received: 0

Can someone tell me how to retrieve the swing high/low from Swing indicator in my strategy.
I have only the current swing now but need both high and low.
PLease write me an example how to do it.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Futures True Range Report
The Elite Circle
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
  #12 (permalink)
eelofi
Finland
 
Posts: 5 since Feb 2011
Thanks Given: 6
Thanks Received: 1

Hi,

I downloaded the file and got it fine into Ninja, but where does it appear? I don't see it strategies, indicators, templates, nowhere? Any ideas where this SwingX is supposed to appear after the import.


marcelo_s View Post
Use attached file as a base to future code. It worked to me

Sorry, I'm quite new to NT, hence asking these silly questions.

Thx,
Eelofi

Reply With Quote
  #13 (permalink)
 marcelo_s 
BUENOS AIRES
 
Experience: Intermediate
Platform: ninja
Broker: AMP
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 0
Thanks Received: 13


Eolfi,
Open the SwingX.cs file with NotePad.
Edit any Strategy, copy/paste what you have in the NotePad, and SaveAs SwingX
Then Compile ( F5 ) and you will find it on the Strategy list
Marcelo



eelofi View Post
Hi,

I downloaded the file and got it fine into Ninja, but where does it appear? I don't see it strategies, indicators, templates, nowhere? Any ideas where this SwingX is supposed to appear after the import.



Sorry, I'm quite new to NT, hence asking these silly questions.

Thx,
Eelofi


Started this thread Reply With Quote
  #14 (permalink)
 mohi4u 
chicago
 
Experience: Master
Platform: NinjaTrader
Trading: EUR/USD
Posts: 23 since Aug 2012
Thanks Given: 6
Thanks Received: 5


marcelo_s View Post
Use attached file as a base to future code. It worked to me

Hello,
I tried to compile the file SwingTrendX.cs, but it gave me the attached error message "Type or namespace SwingTrendX does not exist in namespace NinjaTrader.indicator (are you missing an assembly reference).

Kindly advice, do I need an assembly to be installed? I already have installed PriceActionSwing Indicator.
Please advice, how to fix this compilation errror?

Thanks & Regards,
Mohi

Attached Thumbnails
Click image for larger version

Name:	Error Message.jpg
Views:	218
Size:	222.5 KB
ID:	93777  
Reply With Quote
  #15 (permalink)
 skann 
California
 
Experience: Intermediate
Platform: NinjaTrader, TOS, Sierra
Trading: ES, SPY Options
Posts: 55 since Jun 2013
Thanks Given: 345
Thanks Received: 28


marcelo_s View Post
Use attached file as a base to future code. It worked to me

I am able to compile the given strategy, but dont see the execution in simulation mode. Please advise.

Reply With Quote
  #16 (permalink)
 marcelo_s 
BUENOS AIRES
 
Experience: Intermediate
Platform: ninja
Broker: AMP
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 0
Thanks Received: 13


skann View Post
I am able to compile the given strategy, but dont see the execution in simulation mode. Please advise.

Press CTRL+F, scroll down and look to "Plot executions". Select the option Markets Only, or Text and Markers

Started this thread Reply With Quote
  #17 (permalink)
 skann 
California
 
Experience: Intermediate
Platform: NinjaTrader, TOS, Sierra
Trading: ES, SPY Options
Posts: 55 since Jun 2013
Thanks Given: 345
Thanks Received: 28


marcelo_s View Post
Press CTRL+F, scroll down and look to "Plot executions". Select the option Markets Only, or Text and Markers

I did so, and enabled the strategy in NT control Panel but still strategy is not active. In the control panel the enabled strategy is highlighted in green instead of yellow(yellow means active). Please advise.

Reply With Quote
  #18 (permalink)
 marcelo_s 
BUENOS AIRES
 
Experience: Intermediate
Platform: ninja
Broker: AMP
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 0
Thanks Received: 13


skann View Post
I did so, and enabled the strategy in NT control Panel but still strategy is not active. In the control panel the enabled strategy is highlighted in green instead of yellow(yellow means active). Please advise.

In the Control panel Green means that the Strat is enable. When comes up yellow check your Log Tab, and find out if you want or not to take historical trades at the moment you enable the strat

Started this thread Reply With Quote
  #19 (permalink)
 skann 
California
 
Experience: Intermediate
Platform: NinjaTrader, TOS, Sierra
Trading: ES, SPY Options
Posts: 55 since Jun 2013
Thanks Given: 345
Thanks Received: 28


marcelo_s View Post
Use attached file as a base to future code. It worked to me

I am getting compilation error. Please see the attached and advise.

Reply With Quote
  #20 (permalink)
 marcelo_s 
BUENOS AIRES
 
Experience: Intermediate
Platform: ninja
Broker: AMP
Trading: ES
Posts: 34 since Nov 2009
Thanks Given: 0
Thanks Received: 13



skann View Post


I am getting compilation error. Please see the attached and advise.

If you want, post your code so I can download it in my pc, compile and find out what is missing

Started this thread Reply With Quote
Thanked by:




Last Updated on September 12, 2013


© 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