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 Padan, Today, 02:02 AM
|
9 responses
21 views
0 likes
|
Last Post Today, 03:27 PM | ||
Started by spottysallrite, Today, 11:31 AM
|
7 responses
22 views
0 likes
|
Last Post Today, 03:26 PM | ||
Started by nandhumca, Today, 03:15 PM
|
1 response
4 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by PopovDS, 03-11-2024, 12:49 PM
|
3 responses
17 views
0 likes
|
Last Post
by PopovDS
Today, 03:16 PM
|
||
Started by Lele2k24, Yesterday, 11:24 AM
|
12 responses
37 views
0 likes
|
Last Post Today, 03:07 PM |
Comment