Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Anyone want to program "The Force" ?
Collapse
X
-
I think it's just as simple as this.....
// Condition set 1
if (Stochastics(7, 14, 3).D[0] < Stoch80
&& MACD(12, 26, 1).Avg[0] > MACD(12, 26, 9).Avg[1]
&& CrossBelow(EMA(Close, 5), EMA(Open, 5), 1)
&& Close[0] > Open[0])
{
EnterLong(DefaultQuantity, "");
}
// Condition set 2
if (CrossAbove(EMA(Close, 5), EMA(Open, 5), 1))
{
ExitLong("", "");
}
Comment
-
A quick look ....
I think it's just as simple as this.....
// Condition set 1
if (Stochastics(7, 14, 3).D[0] < Stoch80 <-- Stochastics(3,5,3).K < 80
&& MACD(12, 26, 1).Avg[0] > MACD(12, 26, 9).Avg[1] <-- MACD(12,26,1).Avg[0] must be MACD(12,26,2 or more).[0][0]
&& CrossBelow(EMA(Close, 5), EMA(Open, 5), 1) <-- EMA(Close,5)[0] > EMA(Open,5)[0]
&& Close[0] > Open[0])
{
EnterLong(DefaultQuantity, "");
}
// Condition set 2
if (CrossAbove(EMA(Close, 5), EMA(Open, 5), 1))
{
ExitLong("", "");
}
See above for corrections. The MACD cannot be set to 12,26,1 with the standard MACD indicator and Avg can't be used since it would only be correct if you could use the 12,26,1. Also should be > MACD(12,26,2)[0][1].
The Stochastics parameters are Stochastics(3,5,3).K[0]. The Stochastics(7, 14, 3).D[0] is what I was using to filter out the choppiness.
Last edited by eDanny; 02-05-2009, 08:05 PM.
Comment
-
For anyone still visiting this thread, here is probably the last update on my version of the Force indicator. I added the option for colored candle triggers. Blue is a buy candle and Red is a sell candle. Green are neutral candles. Cyan and Magenta candles indicate either 3 of 4 conditions have been met, such as K line is higher than D line, black line D is rising, EMA dot is blue but Macd dash is still red. It can also indicate all systems go but the candle is a doji or closes in the wrong direction. Sometimes the candle will show a signal but the K line will still be green. That is a problem with stitching colored line segments together, it sometimes fails. The candle trigger will be right though. I also re-ordered the plots so the dots are always on top of the K line and looks cleaner. Have fun!
Edit: Since some people like to use other indicators on their candles I added dots at the top of the indicator panel to show the long or short entry. Sheesh, it should be useful to just about anybody now.Last edited by eDanny; 02-06-2009, 12:28 PM.
Comment
-
eDanny,
Cannot open or download your most recent Zip file.
""Invalid Attachment specified. If you followed a valid link, please notify the administrator ".
Comment
-
Perfect!!!Originally posted by eDanny View PostI was just changing the file when you tried, try again.
Thanks,
RJay
Comment
-
programming indicator
hi everybody
i am just asking if anyone know or can programme very simple indicator which is
volume *variation price on bar close
for example on the future 6E
volume is 850 contracts
for example price close is 1.2288and the next is 1.2295 so the variation will be 7
the calcul will be only 850*7= 5950
on the next bartime
volume is 920 contracts
the bar close is 1.2280 so the variation is 1.2280-1.2295=-15
the calcul is 920*-15= -13800
so if is is possible to writing the results on a graph like the rate of change
it will be perfect.
or it can be
volume* rate of change
I make it manually on excell but it take me very long time so it cannot be use on day trading.
If you want to know the use of this indicator please write me i will explain you how I believe it can be use but i need to backtest more to be sure .
It give a information on divergence. and give a information about reverse trend maybe
thank you
tanou
Comment
-
Thanks again EDanny good workOriginally posted by eDanny View PostFor anyone still visiting this thread, here is probably the last update on my version of the Force indicator. I added the option for colored candle triggers. Blue is a buy candle and Red is a sell candle. Green are neutral candles. Cyan and Magenta candles indicate either 3 of 4 conditions have been met, such as K line is higher than D line, black line D is rising, EMA dot is blue but Macd dash is still red. It can also indicate all systems go but the candle is a doji or closes in the wrong direction. Sometimes the candle will show a signal but the K line will still be green. That is a problem with stitching colored line segments together, it sometimes fails. The candle trigger will be right though. I also re-ordered the plots so the dots are always on top of the K line and looks cleaner. Have fun!
Edit: Since some people like to use other indicators on their candles I added dots at the top of the indicator panel to show the long or short entry. Sheesh, it should be useful to just about anybody now.
Comment
-
As always, your indicators have a flair for the visual. Regardless whether anyone cares about 'The Force' or not this indicator could serve as a great template for which to base others on.
Good job.
Originally posted by eDanny View PostFor anyone still visiting this thread, here is probably the last update on my version of the Force indicator. I added the option for colored candle triggers. Blue is a buy candle and Red is a sell candle. Green are neutral candles. Cyan and Magenta candles indicate either 3 of 4 conditions have been met, such as K line is higher than D line, black line D is rising, EMA dot is blue but Macd dash is still red. It can also indicate all systems go but the candle is a doji or closes in the wrong direction. Sometimes the candle will show a signal but the K line will still be green. That is a problem with stitching colored line segments together, it sometimes fails. The candle trigger will be right though. I also re-ordered the plots so the dots are always on top of the K line and looks cleaner. Have fun!
Edit: Since some people like to use other indicators on their candles I added dots at the top of the indicator panel to show the long or short entry. Sheesh, it should be useful to just about anybody now.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
669 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
378 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 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
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
581 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment