![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Member
Join Date: Nov 2011
Location: Berlin, Germany
Posts: 46
Thanks: 8
Thanked 0 times in 0 posts
|
Hello everyone,
as you can see in the Chart: I would like to move the value of HMA every time when a new bar opens. With two bars, a value for the current bar.With three bars, a value for the current bar etc. The goal is an Enter Long Stop Order for the price, reached before, which has not yet reached by the current bar. But how can i prolong the value (of any MA), each time to the current bar (when it opens)? Thank you for your support!
Last edited by Deogenes; 06-22-2012 at 04:54 PM.
Reason: HMA - extend value (from the last Bar) to the current bar
|
|
|
|
|
|
#2 | |
|
Senior Member
|
Quote:
|
|
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2011
Location: Berlin, Germany
Posts: 46
Thanks: 8
Thanked 0 times in 0 posts
|
[Why not just displace the HMA one bar forward by using the indicator configuration dialog?]
Hello koganam, first of all, I've noticed that I twisted my code. Instead of: HMA > / (<) Close I wrote: Close > / < HMA so the results very different ![]() Now it works fine, just because you make me thinking! ![]() 2. Displacement is clear and known, but it's not what would be possible:if you look at the chart, you can see many reasons why it would be useful the HMA points to extend. So I think it's still very interesting. If you could program it really well, it would certainly be a fine thing. And I'm far away from it ![]() But maybe someone share my idea with his skill: I would be happy!!! |
|
|
|
|
|
#4 | |
|
Senior Member
|
Quote:
|
|
|
|
|
|
|
#5 | |
|
Member
Join Date: Nov 2011
Location: Berlin, Germany
Posts: 46
Thanks: 8
Thanked 0 times in 0 posts
|
Quote:
The interesting thing - too - is that these lines would show Resistance and support very fast and optically god visible. Also, count Bars would be easier. |
|
|
|
|
|
|
#6 | |
|
Senior Member
|
Quote:
|
|
|
|
|
|
The following user says thank you to koganam for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bar/Candle color change with HMA slope??? | MiniDowTrader | Charting | 3 | 10-17-2012 09:00 AM |
| TT Demo Feed: Start to draw new bar 8 seconds after the current bar ended | cw30000 | Charting | 3 | 03-18-2011 07:21 AM |
| if Target Profit reached on previous bar, dont trade current bar | paschall | Strategy Development | 4 | 09-02-2009 10:34 PM |
| Current Bar Open Equals Previous Bar Close | ramacan | Charting | 6 | 05-23-2009 11:07 AM |
| Does NT simulator place orders at the Close of current bar, or Open of next bar? | tomace | Strategy Development | 1 | 03-02-2009 12:43 PM |