Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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?
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
-
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?- 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 to 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).
I look forward to your response.
Comment
-
Originally 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:-
Code:
if (Close[0] > Close[1] || (Close[0] > Close[1] && Close[0] > Open[0]))
-
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.
Code: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
-
-
Originally 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:-
Code:
if (Close[0] > Close[1] || (Close[0] > Close[1] && Close[0] > Open[0]))
-
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.
Code: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 Brevo, Today, 01:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
242 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
6 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
Comment