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
Indicator and steategy (dll) together ?
Collapse
X
-
Hello koganam, i upload the .cs of the indicator (NEWSMA) and the strategy (myStrategy).
Please, look myStrategy.cs:
If i Add the indicator enum value all work
If i Add the strategy enum dont work... why?
Thank you a lot !Attached Files
Comment
-
Creatin strategy with two indicators
hello, Can anyone help me to create an strategy combining 2 indicators... autodivergence macd indicator(d3spotterv3 when detects a divergence sends alert and command to autofibo to draw fibo between hi and low of the divergence, the set up an buy/sell order on 23,8%+2pips with tp on 38,2% fibo-2pips. and stop loss0% fib-5pip. condition : if price breaks 0% without reaching 23,8 fib then order canceled and wait for next divergence
please does anyone know if this is possible ???
best
Comment
-
Originally posted by marynja View PostHello koganam, i upload the .cs of the indicator (NEWSMA) and the strategy (myStrategy).
Please, look myStrategy.cs:
If i Add the indicator enum value all work
If i Add the strategy enum dont work... why?
Thank you a lot !
When you add the indicator to anything, you must pass it with the correct parameters. As you are polluting the global namespace with your myEnum definition, myEnum is available to all classes. Just define your parameter in the Strategy to be of type myEnum.
Comment
-
Originally posted by PEPBOSCH View Posthello, Can anyone help me to create an strategy combining 2 indicators... autodivergence macd indicator(d3spotterv3 when detects a divergence sends alert and command to autofibo to draw fibo between hi and low of the divergence, the set up an buy/sell order on 23,8%+2pips with tp on 38,2% fibo-2pips. and stop loss0% fib-5pip. condition : if price breaks 0% without reaching 23,8 fib then order canceled and wait for next divergence
please does anyone know if this is possible ???
best
Comment
-
-
Originally posted by marynja View PostThank you koganam ! i am trying but i can find solution. Please, could you send me a code example of the stratey?
Thanks !!Code:private esEnum aSelectableValue = esEnum.Ten;
Code:private myEnum aSelectableValue = myEnum.Ten;
Code:[Description("Select Period")] [GridCategory("Select Period")] public esEnum mySelect{ get { return aSelectableValue ; } set { aSelectableValue = value; } }
Code:[Description("Select Period")] [GridCategory("Select Period")] public myEnum mySelect{ get { return aSelectableValue ; } set { aSelectableValue = value; } }
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
5 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
8 responses
61 views
0 likes
|
Last Post Yesterday, 10:45 AM | ||
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
4 responses
3,289 views
1 like
|
Last Post
by jgualdronc
Today, 10:02 AM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
24 views
0 likes
|
Last Post Today, 09:41 AM |
Comment