Open a Buy and sell order on specific Price with specific Trailing stop loss
-
Good Afternoon all.
I would like to ask for help to get start my theory implement into the bot
specific pair GBP/USDwhen Actual price; 1.28
place buy order ; 1.30
place sell order ; 1.25
1 , when the buy order is triggered 1.30 cancel the sell order
2, Place a trailing stop loss on 1.25 The Trailing stop loss is 50 pips from my actual price when I get in the trade.
3,how I can set the trailing stop loss when I catch my profit level which is (50 pips) above lets say in this case is 1.35 the trailing stop loss this time is move to the 1.30 Just if catch my profit level otherwise don't moveOr if sell order Triggered
1 , when is the Sell order is triggered 1.25 cancel the buy order
2, Place a trailing stop loss on 1.30 The Trailing stop loss is 50 pips from my actual price when I get in the trade.
3,how I can set the trailing stop loss when I catch my profit level which is (50 pips) bellow lets say in this case is 1.20 the trailing stop loss this time is move to the 1.30 Just if catch my profit level otherwise don't moveHow I can set. To detect the actual current price and at the closest price above the nearest price levels ending in 0 or 5, place 1 buy order and
actual current price and at the closest price bellow the nearest price levels ending in 0 or 5, place 1 sell order
I mean the price is (1.25/ 1.30 / 1.35 / 1.40 / 1.20 and so on ) price are always end 0 or 5The price was illustration to explain my strategy how is start
Thank you for you time and the Effort
Have a Good Day -
Have you created a first project to begin with?
-
Unfortunately not. I pretty ne on FXdreema site. I have very good strategy just Im not good on programming do you able to help me?
-
Yes, I will help you , but I will not build not build for it for you.
SO let's begin. My first question is, can you please confirm these trades are supposed to be pending order? If so, they need to be programmed exactly at the same time, right? -
@l-andorrà Thank you for your help . This strategy has been work out by hands on the chart line
The problem is I watching millio video to find something which is similar but at the moment no luck. of course I didn't want just you work on my strategy. I try to explain another way. lets say
I upload current pair USDJPY on the 15m period (20pips lined) as you can see the current price now 157.858 and I would like the bot detect the closest price level above ; 158.000 and bellow 157.800 and place just 1 time buy and sell order no more just 1 time when I start the bot detect the current price and find the closest price level for buy order and sell order. When is a buy order triggered on price ; 158.000 cancel the sell order and place a trailing stop above price 157.800 and set up the trailing stop loss to move if I catch my next profit level in case 158.200 the stop loss will move 158.000 .. and vice versa if the sell order trigger first. ahh and the strategy not use take profit because have trailing stop loss which is activate my movement when I catch always the next profit level. I hope is clear . if not I will explain another way. can you set to the trailing stop loss to do not move just if I catch my next profit level! when is the stop loss hit place a buy or sell trade to the opposite direction. When I'm on buy 158.000 and hit the stop loss on 157.800 place sell trade on 157.800 and place trailing stop loss on 158.000 and vice versa .. I hope you get it what I meanThank you for your help and your time
-
@tomaszkva Thank you MR
-
What you want is an ambitious project. It cannot be implemented with a few blocks. Additionally, crystal clear conditions to execute are a must. So let's begin with the first one you mentioned. You said: 'I would like the bot detect the closest price level above...' Why is 158.000 the closest? Shouldn't it be 157.859 as the closest one? Are you requiring round numbers to be the 'closest ones'? There are some other ambiguities in your explanation that need to be perfectly clarified before moving on.