- ago
Hello,
is it possible to make an offset line from the HMA period 7 within X bars?
thanks
0
740
Solved
7 Replies

Reply

Bookmark

Sort
- ago
#1
Hi,

We have displacement of indicators as a feature request:
https://www.wealth-lab.com/Discussion/Indicator-Advanced-Options-for-Building-Blocks-5953
Vote for it by liking that post.

Of course it's super easy to do in code. But why do you need to offset the HMA exactly? Maybe we can find some way around.
0
Best Answer
- ago
#2
Hello,
because I have a strategy indicator crosses indicator.
With the Alligator custom I come approximately, but not exactly.
0
- ago
#3
Nice try with Alligator Custom but you're right, it uses SMMA not HMA. As a workaround you could try to:

1. "Open as C# Coded Strategy" when finished with the Blocks
2. Edit generated code, replacing Alligator with HMA.
0
- ago
#4
hi,

with SMMA it doesn`t work.

CODE:
indicator1 = new HMA(bars.Close,7);       PlotIndicator(indicator1,Color.FromArgb(255,0,0,0));       indicator2 = new Alligator(bars.Close,AlligatorType.Custom,3,3);       PlotIndicator(indicator2,Color.FromArgb(255,0,0,255));       weight = new ATR(bars,20);       PlotIndicator(weight,Color.FromArgb(255,255,0,0));
0
- ago
#5
Can you clarify what "doesn`t work"?
0
- ago
#6
when i select smma i get the error message:
ArgumentOutOfRangeException
0
- ago
#7
Next time you could attach a stack trace of the issue to help troubleshooting. Not necessary now: I figured out that you selected SMMA by typing its name in a Block and got the exception. This will be an easy fix for Build 12. Thanks for reporting.
0

Reply

Bookmark

Sort