Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Help to make the indicator AP down price movement
Collapse
X
-
Help to make the indicator AP down price movement
If the price makes the tick up and the bar closes is to buy(draw candle green - candle 1), then the transactions transactions are and the price is too purchase(draw candle green candle 2), then the price does tick down and closed(draw a red candle-the candle of 3), next deals deals go and the price is worth it-also selling(painting candle red candle 4).Tags: None
-
Hi! No it's a time frame that builds a chart on this algorithm:If we have the price tick up-it is written as a purchase
If the price makes a tick up and stands at a level and there are some transactions, it is still recorded purchase
If the price makes a tick down-it is recorded as a sale
If the price makes a tick down and stands at a level and there are some transactions, then the sale is still recorded
Comment
-
Hello AS007,
Thank you for your response.
Do you have an example chart you could take a screenshot of to provide further context to the items detailed in your initial inquiry?
I look forward to assisting you further.Originally posted by AS007 View PostIf the price makes the tick up and the bar closes is to buy(draw candle green - candle 1), then the transactions transactions are and the price is too purchase(draw candle green candle 2), then the price does tick down and closed(draw a red candle-the candle of 3), next deals deals go and the price is worth it-also selling(painting candle red candle 4).
Comment
-
File in attachment. It is better to watch of course on the time frame of one second, it is clearly understandable.Originally posted by NinjaTrader_PatrickH View PostHello AS007,
Thank you for your response.
Do you have an example chart you could take a screenshot of to provide further context to the items detailed in your initial inquiry?
I look forward to assisting you further.
Comment
-
Hello AS007,
Thank you for your response.
So this would be a pre-existing bars type in another platform, is that correct? If so, can you provide the name of the bars type?
In addition, can you help me to expand and elaborate on your initial inquiry?- So the Close is greater than the Open, is that correct?If the price makes the tick up and the bar closes is to buy(draw candle green - candle 1).
- Can you elaborate on the "price is to purchase"?Then the transactions transactions are and the price is to purchase(draw candle green candle 2).
- So a Red down candlestick, correct?Then the price does tick down and closed(draw a red candle-the candle of 3)
- So this is "price to sell"? Can you elaborate on this?Next deals deals go and the price is worth it-also selling(painting candle red candle 4).
I look forward to your response.
Comment
-
If we have a price tick up-it is recorded as a purchaseOriginally posted by NinjaTrader_PatrickH View PostHello AS007,
Thank you for your response.
So this would be a pre-existing bars type in another platform, is that correct? If so, can you provide the name of the bars type?
In addition, can you help me to expand and elaborate on your initial inquiry?- So the Close is greater than the Open, is that correct?
- Can you elaborate on the "price is to purchase"?
- So a Red down candlestick, correct?
- So this is "price to sell"? Can you elaborate on this?
I look forward to your response.
If the price makes a tick up and stands at a level and there are some transactions, it is still recorded purchase
If the price makes a tick down-it is recorded as a sale
If the price makes a tick down and stands at a level and there are some transactions, then the sale is still recorded
Comment
-
Hello AS007,
Thank you for your response.
Attached is an example of creating such an indicator. To import please download the file to your Desktop and then go to the NinjaTrader Control Center > Tools > Import > NinjaScript Add On and select the file from the desktop.
The indicator uses a bool to set whether the condition was for the green bar or the red bar and then check that bool to see if a prior bar was set and if the current bar should be set.
The conditions consist of the following:-
This checks if the current price is greater than the prior close or if the current price is greater than the prior close and greater than the current open.Code:
if (Close[0] > Close[1] || (Close[0] > Close[1] && Close[0] > Open[0]))
-
This checks if the current price is less than the prior close or if the current price is less than the prior close and less than the current open.Code:
else if (Close[0] < Close[1] || (Close[0] < Close[1] && Close[0] < Open[0]))
We then check if the current price is the same as the prior close and if so we check the bool to see which of the earlier conditions returned true on the prior bar.
For information on working with price data in NinjaScript please visit the following link: https://ninjatrader.com/support/help...ice_series.htmCode:if (Close[0] == Close[1]) { if (ConditionCheck) { BarBrushes[0] = Brushes.Green; } else if (!ConditionCheck) { BarBrushes[0] = Brushes.Red; } }
For information on BarBrushes please visit the following link: https://ninjatrader.com/support/help...barbrushes.htm
Please let me know if you have any questions.Attached Files
Comment
-
-
Hi PatrickHOriginally posted by NinjaTrader_PatrickH View PostHello AS007,
Thank you for your response.
Attached is an example of creating such an indicator. To import please download the file to your Desktop and then go to the NinjaTrader Control Center > Tools > Import > NinjaScript Add On and select the file from the desktop.
The indicator uses a bool to set whether the condition was for the green bar or the red bar and then check that bool to see if a prior bar was set and if the current bar should be set.
The conditions consist of the following:-
This checks if the current price is greater than the prior close or if the current price is greater than the prior close and greater than the current open.Code:
if (Close[0] > Close[1] || (Close[0] > Close[1] && Close[0] > Open[0]))
-
This checks if the current price is less than the prior close or if the current price is less than the prior close and less than the current open.Code:
else if (Close[0] < Close[1] || (Close[0] < Close[1] && Close[0] < Open[0]))
We then check if the current price is the same as the prior close and if so we check the bool to see which of the earlier conditions returned true on the prior bar.
For information on working with price data in NinjaScript please visit the following link: https://ninjatrader.com/support/help...ice_series.htmCode:if (Close[0] == Close[1]) { if (ConditionCheck) { BarBrushes[0] = Brushes.Green; } else if (!ConditionCheck) { BarBrushes[0] = Brushes.Red; } }
For information on BarBrushes please visit the following link: https://ninjatrader.com/support/help...barbrushes.htm
Please let me know if you have any questions.
Thank you, very cool happened on bars, but the spark stops are not stained sorry(I think you can improve?) Also wanted to ask you to redo this simple indicator for eight (see attachment)
Comment
-
-
Hello AS007,
Thank you for your response.
We do not provide programming services. The example I provided was simply an example to help you get started in indicator development. If you are looking for someone to develop indicators for you please let me know and I can have our affiliate NinjaTrader Ecosystem follow up with a list of NinjaScript Consultants.
Please let me know if you have any questions.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
560 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
325 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment