Could you or someone else with more ninjascript expireance than me please tell me (help me) what I should add to your code so that a arrow is ploted under or above the bar which activates the scalper bar (if this is not a complicated modification), I mean, when a scalper UP bar is ploted that a UP arrow plots under the bar (bar 0) which just closed above the trigger bar and makes the scalper bar plot and the same for DOWN (sorry, not shure if I expres myselfe clear).
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Scalper
Collapse
X
-
Hello Gumphrie,
Could you or someone else with more ninjascript expireance than me please tell me (help me) what I should add to your code so that a arrow is ploted under or above the bar which activates the scalper bar (if this is not a complicated modification), I mean, when a scalper UP bar is ploted that a UP arrow plots under the bar (bar 0) which just closed above the trigger bar and makes the scalper bar plot and the same for DOWN (sorry, not shure if I expres myselfe clear).Last edited by whitegun; 11-10-2007, 05:09 AM.
-
Hi Gumphrie,
Yes, I have the latest version but it is not the "Highlight current trigger bars" true/false config option what I am talkinig about.
At the moment there is absolutly no way to use scalper for a ATM strategy (this is how I see it, if I am wrong please correct me).
As scalper didn't is a plain bar or line plot but it is overriding the Plot class seams that it is not recognized at all in a ATM strategy, means, if I create a verry simple ATM strategy for test (using the strategy wizard) like: scalper(low)[3]>SMA(14)[3] go long (if 3 bars ago there is a scalper signal and the low of the scalper bar is higher than a 14day SMA 3 bars ago go long), the scalper is totaly ignored in the strategy, it simply enters long on the first bar (3 bars ago) above SMA.
However, the "Highlight current trigger bars" option can not be used in a ATM strategy because there would be a lot of wrong entries. When the arrow apear that not always means that you will get a scalper bar, if there is no close above or bellow the triger you simply get a new triger in an other place but you only wont enter if you get a confirmed scalper bar not only a posible one.
Please have a look at the atached picture:
What I mean is, bars that just made the scalper bar paint (bar 0 that closed above or below the trigger bar) get at the same time that the scalper bar is painted a arrow plotted above or below them.
In a ATM strategy the entry would be at the next bar after the bar with the arrow.
I suppose if now you would say: scalper(low)[0]>SMA(14)[0] enter long it should work (or am I wrong??)
Best Regards
Comment
-
Hi Whitegun,
Yes, there are two thing things that make it hard to use in any strategy.
1. It overrides the Plot class and doesn't actually write out any plots a strategy could pick up. You could get around this by creating another indicator using the same code that does write out a plot, but...
2. It colours in the bars retrospectively so anything you plot will not match up with the actual bars plotted.
That said, please find attached an indicator that has two plots, "ScalpUpSeries" and "ScalpDownSeries" in different colours. If you add it to your chart it will plot a positive value ("1") when a Scalp Up bar is detected and a negative value ("-1") when a Scalp Down Bar is plotted. So something like :
Code:[FONT=Courier New] if (ScalpPlot.ScalpUpSeries[0]==1) [/FONT] [FONT=Courier New][SIZE=2]{[/SIZE][/FONT][FONT=Courier New] [/FONT][FONT=Courier New][SIZE=2]EnterShort(DefaultQuantity, [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800000]""[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]);[/SIZE] [/FONT] [FONT=Courier New][SIZE=2]}[/SIZE][/FONT]
Attached Files
Comment
-
Very nice. This could be very useful if used in conjunction with other filters to eliminate the many uninteresting triggers which happen in the market goes sideways for a while.
I'm curious about the color scheme, and naming conventions, however. It would seem more intuitive to me if red & green were reversed, so a green indication preceded an uptrend, and if ScalpUpSeries were used to indicate time to EnterLong, etc.
Am I missing something here?
Comment
-
Hi KBJ
ScalpUpSeries represents a high bar being painted, so that's why you would go short, and vica versa. I see there could be confusion between 'going up' and 'had an up', in which case I was thinking of the latter. They're just names I picked up at random when I was hacking the original code, so feel free to change it or suggest new ones.
Comment
-
Originally posted by jackj90 View PostI wonder if this indicator can be modified to KEEP the painted arrows on the chart?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by carnitron, Today, 08:42 PM
|
0 responses
5 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
6 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,974 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
8 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
||
Started by rhyminkevin, Today, 04:58 PM
|
4 responses
58 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
Comment