Lower Low of last 2 bars followed by a higher Close
Author: TraDeBrum
Creation Date: 10/25/2019 11:40 AM
profile picture

TraDeBrum

#1
Hi guys,

I am writing because I really need help about one strategy.

Let me try to explain,

I want to develop and convert to code-based strategy this:

The condition is when the minimum price in the current bar was lower than the last two previously bars and the closure price was higher than the last previously bar. The entry happens in the rupture of the current bar. The stop is in the minimum price the current bar.
My target is twice the amplitude of the current bar.

thank you
profile picture

Eugene

#2
Bom dia Aloysio,

Here's your Strategy code in WealthScript. You can optimize the number of previous Lows and the "amplitude" i.e. the profit target:

CODE:
Please log in to see this code.


Hope I understood you well. If not feel free to correct me.
profile picture

TraDeBrum

#3
Thank you Eugene, but using the codes still confuse for me. Could you to explain with strategy from rules please?

I have already got to develop using by strategy rules the primary conditions, but not yet target and stop loss...

How I put my target (my target is 200% Fibonacci projection).
How I put my stop loss 1 tick below blue candle (blue candle is my start condition).

I attached a image to explain.

I hope to hear from you soon

profile picture

Eugene

#4
Your exits go beyond the capabilities of Rules already available. While Rules are undoubtedly powerful, not any trading idea can be expressed using them. If it were possible you'd probably be asking some A.I. (artificial intelligence) or a coding bot here instead of me! But since it's not the case yet there's at least one area where the human expertise can still be helpful -- like coding in WealthScript. :)

QUOTE:
How I put my stop loss 1 tick below blue candle (blue candle is my start condition).

Modify the stop loss line like this:
CODE:
Please log in to see this code.
profile picture

superticker

#5
The comma before "Tick" should be a period. But you knew that.
CODE:
Please log in to see this code.

When I first saw this, I thought it was some new "tick" parameter of the ExitAtStop(...) call I didn't know about. :-)

UPDATE: And you can delete this Post# 5 now that it's fixed. Clean it up.
profile picture

Eugene

#6
Was editing on-the-fly after a full day of coding different stuff. Fixed. Thanks Mark.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).