Example,when writing a RSI indicator,we check for the total bars on chart and compare it to the RSI period,if conditions are met,it should return.Thats the calculation logic used in MT4,is it the same here?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Conversion of MT4 indicator to NT8
Collapse
X
-
Conversion of MT4 indicator to NT8
Hello all,I'm used to writing indicator and expert Advisor using mql4(language used in MT4) and it uses the same framework(C#) as NT8.The difference i think is the predefined variables used.For example the predefined variable- Bars in MT4 will return the Total numbers of bars(candlestick) on a chart.How do i perform this same action here.And is there a detailed list showing predefined variables here and there functions?
Example,when writing a RSI indicator,we check for the total bars on chart and compare it to the RSI period,if conditions are met,it should return.Thats the calculation logic used in MT4,is it the same here?
Last edited by Icus1; 11-20-2020, 11:46 PM.Tags: None
-
Hello Icus1,
NinjaTrader has the CurrentBar property to provide the number of the currently processing bar.
The Help Guide is the resource with a complete list of documented properties and methods. On the NinjaTrader website click Help and then Help Guides.
Below is a link to the help guide on calling the RSI() indicator.
I am also including a link to a forum post with helpful information about getting started with NinjaScript.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
333 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
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment