NexusFi: Find Your Edge


Home Menu

 





Ninjatrader NT8 candle body quarters indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one trendisyourfriend with 3 posts (1 thanks)
    2. looks_two Touchups with 2 posts (0 thanks)
    3. looks_3 J102491 with 1 posts (1 thanks)
    4. looks_4 113118 with 1 posts (0 thanks)
    1. trending_up 3,172 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 Touchups 
Jonesboro AR
 
Experience: Intermediate
Platform: TOS, NinjaTrader 8
Trading: ES mini
Posts: 53 since Jul 2022
Thanks Given: 22
Thanks Received: 17

Hello. Looking for an indicator that will mark the quarters and body of a candle. I have actually found one to do the quarters. BUT I am wanting it mark the 50% of the remaining body at close, not the whole candle. Thanks

This one from the ecosystem is good, but it marks the 50% of the whole candle, including wicks. Maybe it can just be modified?

https://ninjatraderecosystem.com/user-app-share-download/candle-quarters-2/


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Tradeify 3.0 Overhauls Futures Prop Firm Model -- One-Ti …
Funded Trading Evaluation Firms
Orban at 29pct as Hungary Votes Tomorrow -- McIlroy Surg …
Prediction Markets & Event Contracts
Prop Firm Tracked Payouts Hit $115M in Q1 but Growth Fla …
Funded Trading Evaluation Firms
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
Irans Dual Probability: Guns Quiet at 99.95% While Forma …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #2 (permalink)
 113118 
Lille France
 
Experience: Intermediate
Platform: Ninjatrader
Trading: Contrats à terme, NQ, YM, Or
Posts: 3 since Jul 2023
Thanks Given: 1
Thanks Received: 1

what is the strategy for this indicator?


Reply With Quote
  #3 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199


I did one a while ago for another member of NexusFi. You can do it yourself using the FormulaIndicator in the download section..


Touchups View Post
Hello. Looking for an indicator that will mark the quarters and body of a candle. I have actually found one to do the quarters. BUT I am wanting it mark the 50% of the remaining body at close, not the whole candle. Thanks

This one from the ecosystem is good, but it marks the 50% of the whole candle, including wicks. Maybe it can just be modified?

https://ninjatraderecosystem.com/user-app-share-download/candle-quarters-2/


Reply With Quote
  #4 (permalink)
 Touchups 
Jonesboro AR
 
Experience: Intermediate
Platform: TOS, NinjaTrader 8
Trading: ES mini
Posts: 53 since Jul 2022
Thanks Given: 22
Thanks Received: 17

Not sure what you mean. I can not find anything referencing FormulaIndicator in the downloads or search area. I am not a programmer. Wouldn't have a clue how to do it myself.


Started this thread Reply With Quote
  #5 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199


Touchups View Post
Not sure what you mean. I can not find anything referencing FormulaIndicator in the downloads or search area. I am not a programmer. Wouldn't have a clue how to do it myself.

Check this comment i made a few months ago:


Reply With Quote
  #6 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199

This formula should work too:
CLOSE(0) + (OPEN(0) - CLOSE(0)) / 2

I used chat GPT to find another solution.

I started with this prompt:
I have an indicator named "FormulaIndicator" for Ninjatrader that accepts one parameter of type text. The text we enter represents a formula the indicator will interpret to generate new series on the fly. Here are a few simple formula examples:

CLOSE(0) / CLOSE(1)
(HIGH(0) - LOW(0)) / 2
MATH-LOG10(CLOSE(0))
CLOSE(0) / VALUE(SMA(14), 0)
(CLOSE(0) / CLOSE(1)) * 14
VALUE(SMA(BARS-ARRAY(0),14), 0)
VALUE(SMA(14), 0) - VALUE(EMA(14), 0)

Comparison to NinjaScript syntax (left is formula expression = right is NinjaScript C# expression):
CLOSE() = Close
CLOSE(0) = Close[0]
VALUE(VOL(),0) = VOL()[0]
VALUE(CLOSE(), 0) = Close[0]
BARS-ARRAY(0) = BarsArray[0]
VALUE(SMA(BARS-ARRAY(0), 14), 0) = SMA(BarsArray[0], 14)[0]
VALUE(SMA(14),0) = SMA(14)[0]
VALUE(MACD(12,26,9),0) = MACD(12,26,9)[0]
MATH-LOG10(CLOSE(0)) = Math.Log10(Close[0])

For example, to generate a new series that would display 3 times the ATR(13) below an EMA(50) we could enter this formula:
VALUE(EMA(50),0)-VALUE(ATR(13),0) *3

The indicator supports these Price Series:
CLOSE, OPEN, HIGH, LOW, WEIGHTED, TYPICAL, MEDIAN

it also supports these Indicators:
ADL, ADX, ADXR, AroonOscillator, ATR, BOP, CCI, CMO, DEMA, DisparityIndex, DM, EMA, FOSC, HMA, KAMA, LinReg, LinRegIntercept, LinRegSlope, MACD, MAMA, MAX, MFI, MIN, Momentum, OBV, ParabolicSAR, PFE, Range, RIND, ROC, RSI, RSquared, StdDev, SMA, StochRSI, SUM, TEMA, TMA, TSF, TSI, UltimateOscillator, VMA, VOL, WilliamsR, WMA, ZLEMA

and finally it supports these math functions:
MATH-ABC, MATH-LOG, MATH-LOG10, MATH-EXP, MATH-SQRT, MATH-ACOS, MATH-ASIN, MATH-ATAN, MATH-ATAN2, MATH-CEILING, MATH-COS, MATH-COSH, MATH-E, MATH-FLOOR, MATH-IEEEREMAINDER, MATH-MAX, MATH-MIN, MATH-PI, MATH-POW, MATH-ROUND, MATH-SIN, MATH-SINH, MATH-TAN, MATH-TANH

Given these details, could you write a formula for me if i specify my requirements ?

---
Requirement:
write the formula to calculate the average between the Close and Open prices and that could correctly account for both bullish and bearish candles.


Reply With Quote
Thanked by:
  #7 (permalink)
J102491
Miami, Fl
 
Posts: 11 since Jun 2022
Thanks Given: 0
Thanks Received: 2


trendisyourfriend View Post
This formula should work too:
CLOSE(0) + (OPEN(0) - CLOSE(0)) / 2

I used chat GPT to find another solution.

I started with this prompt:
I have an indicator named "FormulaIndicator" for Ninjatrader that accepts one parameter of type text. The text we enter represents a formula the indicator will interpret to generate new series on the fly. Here are a few simple formula examples:

CLOSE(0) / CLOSE(1)
(HIGH(0) - LOW(0)) / 2
MATH-LOG10(CLOSE(0))
CLOSE(0) / VALUE(SMA(14), 0)
(CLOSE(0) / CLOSE(1)) * 14
VALUE(SMA(BARS-ARRAY(0),14), 0)
VALUE(SMA(14), 0) - VALUE(EMA(14), 0)

Comparison to NinjaScript syntax (left is formula expression = right is NinjaScript C# expression):
CLOSE() = Close
CLOSE(0) = Close[0]
VALUE(VOL(),0) = VOL()[0]
VALUE(CLOSE(), 0) = Close[0]
BARS-ARRAY(0) = BarsArray[0]
VALUE(SMA(BARS-ARRAY(0), 14), 0) = SMA(BarsArray[0], 14)[0]
VALUE(SMA(14),0) = SMA(14)[0]
VALUE(MACD(12,26,9),0) = MACD(12,26,9)[0]
MATH-LOG10(CLOSE(0)) = Math.Log10(Close[0])

For example, to generate a new series that would display 3 times the ATR(13) below an EMA(50) we could enter this formula:
VALUE(EMA(50),0)-VALUE(ATR(13),0) *3

The indicator supports these Price Series:
CLOSE, OPEN, HIGH, LOW, WEIGHTED, TYPICAL, MEDIAN

it also supports these Indicators:
ADL, ADX, ADXR, AroonOscillator, ATR, BOP, CCI, CMO, DEMA, DisparityIndex, DM, EMA, FOSC, HMA, KAMA, LinReg, LinRegIntercept, LinRegSlope, MACD, MAMA, MAX, MFI, MIN, Momentum, OBV, ParabolicSAR, PFE, Range, RIND, ROC, RSI, RSquared, StdDev, SMA, StochRSI, SUM, TEMA, TMA, TSF, TSI, UltimateOscillator, VMA, VOL, WilliamsR, WMA, ZLEMA

and finally it supports these math functions:
MATH-ABC, MATH-LOG, MATH-LOG10, MATH-EXP, MATH-SQRT, MATH-ACOS, MATH-ASIN, MATH-ATAN, MATH-ATAN2, MATH-CEILING, MATH-COS, MATH-COSH, MATH-E, MATH-FLOOR, MATH-IEEEREMAINDER, MATH-MAX, MATH-MIN, MATH-PI, MATH-POW, MATH-ROUND, MATH-SIN, MATH-SINH, MATH-TAN, MATH-TANH

Given these details, could you write a formula for me if i specify my requirements ?

---
Requirement:
write the formula to calculate the average between the Close and Open prices and that could correctly account for both bullish and bearish candles.

This is really cool, thank you


Reply With Quote
Thanked by:




Last Updated on October 15, 2024


© 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