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,623 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 71 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?
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
CFTC Launches Innovation Task Force for AI Trading Syste …
Traders Hideout
CME Cuts Precious Metals Margins Up to 21% Starting Toda …
Commodities
OneChronos Launches First Combinatorial Auction FX Venue …
Currencies
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
cory's Avatar
 cory 
virginia
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093


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: 71 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
the coin hunter
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,093


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,033 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


© 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