NexusFi: Find Your Edge


Home Menu

 





Ninjatrader NT8 candle body quarters indicator


Discussion in NinjaTrader

Updated
    1. trending_up 669 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Ninjatrader NT8 candle body quarters indicator

  #1 (permalink)
 Touchups 
Jonesboro AR
 
Experience: Intermediate
Platform: TOS, NinjaTrader 8
Trading: ES mini
Posts: 42 since Jul 2022
Thanks Given: 12
Thanks Received: 16

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?
Quantum physics & Trading dynamics
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
What broker to use for trading palladium futures
Commodities
 
  #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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


I did one a while ago for another member of FIO. 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: 42 since Jul 2022
Thanks Given: 12
Thanks Received: 16

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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020

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:




Last Updated on July 9, 2023


© 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