Please, I d like to set up a sell target of % of the size of entry candle bar in my strategy. In general, I use manually Fibonacci to establish the risk return ratio. How can I do this, considering that I have not found any similiar option in pre-programmed rules of the WL. How can I do that?
Size:
Color:
That's right, neither of the pre-programmed rules suffice. However, you can easily accomplish the task in code:
CODE:
Please log in to see this code.
Size:
Color:
Think I've misread your request where you stressed the
entry bar's range. My previous code refers to the bar preceding the bar of entry. (As you understand, it's impossible to know the entry bar's range beforehand.)
Now here's version that is closer to what you're after:
CODE:
Please log in to see this code.
Size:
Color:
Rogerio, I added the rule you requested to our Community.Rules library. It allows you to easily add the condition to Rule-based systems. To get it:
1. sign up in the Wiki at:
Register2. if you're unable to open the Wiki because of an error, see post #21 in this forum topic:
Is Wiki down?3. wait until we greenlight your Wiki account
manually4. grab it from the Wiki and follow installation instructions:
Community.RulesThe rule is called "Sell (Cover) at Limit of Entry Bar's Range %".
Hope this helps.
Size:
Color:
QUOTE:
I use manually Fibonacci to establish the risk return ratio.
WL does let you draw Fibonacci lines (either vertical or horizontal) on the Chart window, but you have to do that manually. Look for the graphic button [FIB] on the right of the Chart. I'm not sure how you can approximate the Fibonacci price range programmatically.
I wouldn't base your trading "range" (i.e. bracket) on a
single bar behavior (e.g. the entry bar). That single value may be discordant or an outlier. I use the ATR myself for some bracket range calculations, but it's not ideal. A manually set Fibonacci range (with the [FIB] button over
many bars) would probably be better than using the ATR for bracket range estimation. That's probably why investors use the manually set Fibonacci range in the first place when tier trading--the Fibonacci range is more accurate and robust.
Size:
Color: