Shooting Star's high and low in Rules
Author: Teoking1996
Creation Date: 3/3/2021 9:43 PM
profile picture

Teoking1996

#1
Hello guys, i have just downloaded the trial version of the software and It has beenhours that i am trying to set a strategy without success.

Here's my strategy I want to backtest...

Conditions:

A shooting star appears
The shooting star "high" is the highest "high" in the last 7 days
The day after the shooting star pattern, prices goes below the minumum of the shooting star. (downtrend is starting)

Stop Loss: at the "high" of the shooting star
Take profit: 2 times the height of the shooting star candlestick projected below the shooting star (so if the shooting star range = (high - low) = 5 and the minimum of the shooting star is at 25$, i want to take profit at a price level equal to 25 - (2 * 5) = 15$

I really don't know how to set those conditions, please help me!

Thank you

profile picture

Cone

#2
The buy (or short) rule isn't clear to me. What's the trigger to enter the position?

I'm not a wizard-rules expert, but it's likely that you won't be able to get that exit logic from the wizard and will need to code that by hand.
profile picture

Eugene

#3
Wow, given that you're from France too as the user who started the lengthy conversation below on a somewhat similar Shooting Star strategy 12 years ago this looks like a funny coincidence!

Shooting Star strategy with multiple profit targets
profile picture

Eugene

#4
This code should do the trick:

CODE:
Please log in to see this code.
profile picture

Teoking1996

#5
Thank you very much for your code. I swear i'm not the guy from 12 years ago, also because at that time the best thing I could trade was Pokémon cards ahahahah

can you just change a small detail? i noticed that it enters a short position two days after the shooting star (because it waits that the candle following the ss goes below the low of the ss and then the day after it shorts), is it possible to make it enter the day immediately after the ss (so as soon as the prices goes below the minimum of the ss it enters at that price)? Also if you could reduce the range multiplier from 2 to 1.5 would be great.

Thank you very much!.
Sorry if I am a pain in the neck!
p.s.

Which coding language is it? i'm trying to study python but this looks different
profile picture

Eugene

#6
Glad to help you.

QUOTE:
is it possible to make it enter the day immediately after the ss (so as soon as the prices goes below the minimum of the ss it enters at that price)?

You can change this C# code to enter on close of the day:
CODE:
Please log in to see this code.

QUOTE:
Also if you could reduce the range multiplier from 2 to 1.5 would be great.

It's here:
CODE:
Please log in to see this code.
profile picture

Teoking1996

#7
Thanks!
profile picture

Eugene

#8
Thanks for your interest in Wealth-Lab!
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).