Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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?
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.
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:
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
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.