NexusFi: Find Your Edge


Home Menu

 





Assigning a numeric value to a signal generated by an indicator


Discussion in NinjaTrader

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




 
Search this Thread

Assigning a numeric value to a signal generated by an indicator

  #1 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22

I am working on an indicator that generates a signal for a long permission, and another signal for a short permission. Is there a way to add a value to the signal? For example, Long (1) Short (-1), no signal (0). Any help or direction would be greatly appreciated.

Cheers!
Bullywig

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
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
32 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #2 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


Bullywig View Post
I am working on an indicator that generates a signal for a long permission, and another signal for a short permission. Is there a way to add a value to the signal? For example, Long (1) Short (-1), no signal (0). Any help or direction would be greatly appreciated.

Cheers!
Bullywig

this one has tradeTrigger = 1 or -1

Reply With Quote
Thanked by:
  #3 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22



cory View Post
this one has tradeTrigger = 1 or -1

Thank you for the direction. I found the portion of code that refers to the value 1 or -1. I was able to implement this into my indicator and it compiled without any errors, but I cannot find where that value prints or is referenced so that it can be used or called up in a potential strategy. This is a new venture for me so still on the exponential flat so to speak as far as understanding the code, so I apologize in advance if I'm not recognizing something that is very obvious.

Started this thread Reply With Quote
  #4 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


Bullywig View Post
Thank you for the direction. I found the portion of code that refers to the value 1 or -1. I was able to implement this into my indicator and it compiled without any errors, but I cannot find where that value prints or is referenced so that it can be used or called up in a potential strategy. This is a new venture for me so still on the exponential flat so to speak as far as understanding the code, so I apologize in advance if I'm not recognizing something that is very obvious.

ninja forum can help to develop your strategy

Reply With Quote
Thanked by:
  #5 (permalink)
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,034 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593


Bullywig View Post
I am working on an indicator that generates a signal for a long permission, and another signal for a short permission. Is there a way to add a value to the signal? For example, Long (1) Short (-1), no signal (0). Any help or direction would be greatly appreciated.

Cheers!
Bullywig

I think this is a good idea Bullywig.

You ask about adding value. One way - depending on your strategies is to have strength categories
If your indicator is bounded (eg. possible values from zero to 100) then you could decided to break it into categories.

So this is the spreadsheet for % close in range and you can place numerics to the levels

@IF(FR64>0.86,"Vhigh cls",@IF(FR64<=0.86#AND#FR64>0.76,"high",@IF(FR64<=0.76#AND#FR64>0.24,"mid",@IF(FR64<=0.24#AND#FR64>0.14,"low",@IF(FR64<=0.14,"Vlow cls","other")))))


Vhigh = 2
high = 1
mid = 0
low =-1
very low =-2

which could read
strong buy
buy
no trade
sell
strong sell

The idea is you may vary the amount invested in a trade risking more on a strong buy then on a buy.
------------
If it is unbounded and if most values are between -100 and +100
vhigh =2 = +100 to infinity
high = 1 = +62 to +100
mid = 0 = -32 to +62

etc
---
If at a later date you will have other indicators you can follow something similar for them
indicator 1 = strong buy
indicator 2 = buy

I have split the range into 5 categories above. Of course you can decide what the split would be for your indicator - not too many and not too few.

..........
peace, love and joy to you
.........
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on January 26, 2018


© 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