Nowadays I try to do strategy like this, so I'm very interested in your solution ... Thanx a lot.
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
orders placed according to color of bars
Collapse
X
-
I'd like to create strategy like "if bars are green and third red bar in a line appears, enter short. Exit, when first reverse bar appears." or something like this. Any idea?
Another idea on renko - detecting double tops / bottoms on this type of chart. Again - no idea how to code it.
Comment
-
Lucinek,
Build a strategy based on the > plus x ticks then buy, < minus ticks sell.
or close[1]> close[0] buy , close[1]< close[0] sell.
RJay
Comment
-
Originally posted by Lucinek View PostI'd like to create strategy like "if bars are green and third red bar in a line appears, enter short. Exit, when first reverse bar appears." or something like this. Any idea?
Another idea on renko - detecting double tops / bottoms on this type of chart. Again - no idea how to code it.
I know very little about programming.
If you really need code written I suggest that you arrive at a place
where you're sure you know what you want. Then contact a programmer.
I have contacted http://www.tradingstudies.com/services.html
(which is the poster, roonius). I sent the e-mail 5 minutes ago so there isn't
a reply as yet. I just asked for a general price to do such and such.
(This is why I said "arrive at a place
where you're sure you know what you want" so you don't keep coming back
to whoever you might choose to do your programming, and change things
over and over.
That will cost you.)
If you have time it would SEEM that Ninja Script could be learned. I've spend
some time with it with little results.
rt6176 (ie. RJay) has posted below. He is very much into Renkos. He knows what
he's doing as well. How much time he has is another matter.
Comment
-
It seems very strange for me.
Why Close[0] > Close[1] indicates SELL order?
Close[1] means "close price of previous bar", is it correct?
If so, in renko chart when new bar is created and it's close is higher then previous one, it indicates LONG position, not short ...
I'm quite confused of it .
I have used opposite conditions first, but it enters long instead of short .. but when i reverse this condition, its behaviour is still very strange.
OK, lets check the code:
Code:protected override void Initialize() { SetTrailStop("RenRev", CalculationMode.Ticks, 8, false); CalculateOnBarClose = true; } protected override void OnBarUpdate() { if (Historical) return; // Long position ... ? if (Close[0] > Close[1]) { if (Position.MarketPosition == MarketPosition.Short) ExitShort (); if (Position.MarketPosition != MarketPosition.Long) { DrawArrowUp("Long" + CurrentBar, false, 0, 0, Color.Lime); EnterLong(DefaultQuantity, "RenRev"); } } // Enter short position ... ? if (Close[0] < Close[1]) { if (Position.MarketPosition == MarketPosition.Long) ExitLong (); if (Position.MarketPosition != MarketPosition.Short) { DrawArrowDown("Short" + CurrentBar, false, 0, 0, Color.Red); EnterShort(DefaultQuantity, "RenRev"); } } }
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ZeroKuhl, Today, 04:31 PM
|
0 responses
7 views
0 likes
|
Last Post
by ZeroKuhl
Today, 04:31 PM
|
||
Started by Vulgoth_t_Destroyer, 05-09-2022, 04:45 PM
|
54 responses
5,336 views
0 likes
|
Last Post
by Gaterz
Today, 04:29 PM
|
||
Started by ETFVoyageur, 05-07-2024, 07:05 PM
|
11 responses
74 views
0 likes
|
Last Post
by -=Edge=-
Today, 04:27 PM
|
||
Started by _Zero_, 04-10-2020, 03:21 PM
|
145 responses
7,900 views
6 likes
|
Last Post
by johng2
Today, 04:19 PM
|
||
Started by TheTradingMantis, 01-19-2023, 02:05 AM
|
43 responses
921 views
0 likes
|
Last Post
by jmagaia
Today, 04:13 PM
|
Comment