Announcement
Collapse
No announcement yet.
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
-
The fact that you have defined myEnum and esEnum to have the exact same members does not make them equivalent types: they have absolutely no relationship to each other.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
-
It is possible to code it, yes. But what you have described is rather elaborate. You may have to hire someone to code it: I kind of doubt that you are going to get that done for free.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 !!should beCode:private esEnum aSelectableValue = esEnum.Ten;
after which, you have to expose the property correctly.Code:private myEnum aSelectableValue = myEnum.Ten;
should beCode:[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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 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
554 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