i'm looking for some example code that will show me how to use open high low close prices when using the NinjaEditor [eg] are they reserved words? or must they be declared somehow?...and if so where?
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
example code request for o-h-l-c usage
Collapse
X
-
example code request for o-h-l-c usage
help requested:
i'm looking for some example code that will show me how to use open high low close prices when using the NinjaEditor [eg] are they reserved words? or must they be declared somehow?...and if so where?Tags: None
-
Originally posted by joemiller View Posthelp requested:
i'm looking for some example code that will show me how to use open high low close prices when using the NinjaEditor [eg] are they reserved words? or must they be declared somehow?...and if so where?
It's also installed locally under Help in control center.
-
Originally posted by joemiller View Postthanks sledge
when I code "xyz=open;" and xyz was defined in the user defined inputs panel and then I compile ....I get the error message 'the name xyz does not exist in the current context'.
any thoughts/suggestions will be appreciated.
Comment
-
below is a copy of the code.
the statement about halfway down 'hAOname=open;' (at the blue 'confused' icon)
is the issue. it is line 50. the following two error messages are generated, both for line 50.
'the type of namespace name "dbl" could not be found'
'the name "open" does not exist in the current context
I got a message 'The text that you have entered is too long (36529 characters). Please shorten it to 10000 characters long.' .... so the shortened version is below'
#region Variables
// Wizard generated variables
private double hAOname = 0.015; // Default setting for HAOname
// User defined variables (add any user defined variables below)
#endregion
///<summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
///</summary>
protected override void Initialize()
{
CalculateOnBarClose = true;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protected override void OnBarUpdate()
// my stuff ///////////////////////////////////////
{
hAOname=open;
}
// end my stuff //////////////////////////////////
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
601 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
18 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
Comment