How do I do to:
Buy at least of the last 2 candles
Sell at the maximum of the last two candles
or sell after 7 candles
I want limited orde
Buy at least of the last 2 candles
Sell at the maximum of the last two candles
or sell after 7 candles
I want limited orde
Rename
Think Highest and Lowest and use the "Indicator new High/Low" condition in Building Blocks.
I already tried using this new high/low. But it's not making me buy the low of 2 previous bars, and sell the high of 2 bars
Does your Strategy look exactly like this?
I achieved.
But now how do I Allow operations to start from 10:15 and end at 16:15?
I already downloaded the powerpack
But now how do I Allow operations to start from 10:15 and end at 16:15?
I already downloaded the powerpack
Use the "Time of day" condition.
That's what I put here, but it's not working, I'm doing something wrong
Yes, like expecting it to work on Daily data. That's not going to work.
It is intraday chart 15minutes
Can you post a screen shot of what you have?
I put it like this, it was very wrong
I want operations to start from 10:15 and end at 16:15
First, don't use "Equal to" a time, unless you want the operation to occur ONLY at that time.
If you want "between times", add two Time Of Day qualifiers to both Buy and Sell blocks, like this -
If you want "between times", add two Time Of Day qualifiers to both Buy and Sell blocks, like this -
I noticed that there were operations that lasted until the next day, how do I close the operations until the end of the day?
Because the stop at the time of 7 bars drags the trade until the next day, how do I close the trade, before the market closes
Because the stop at the time of 7 bars drags the trade until the next day, how do I close the trade, before the market closes
You can adjust the "Time of day is less..." accordingly (reduce the time), isn't it?
The chart has 15-minute bars and the last bar ends at 16:00. (Note: Weatlh-Lab timestamps are at the end-of -bar.) The sell at market is triggered on the 7th bar, but the 7th bar was at 16:00, and the trade takes place on the next bar.
If the idea is to always exit before the end of the day, add another Sell At Market and drop a "Bar of Day" condition on it, like this -
Since it's a Market order, this will sell at the open of the last bar. If you want it to be a Market On Close (MOC) order, you'll have to edit the OrderType of the signal in the C# code version from OrderType.Market to OrderType.MarketClose.
Also, make sure your buy condition is limited to trigger on or before 1530, otherwise there will be no way to exit before the end of the day.
If the idea is to always exit before the end of the day, add another Sell At Market and drop a "Bar of Day" condition on it, like this -
Since it's a Market order, this will sell at the open of the last bar. If you want it to be a Market On Close (MOC) order, you'll have to edit the OrderType of the signal in the C# code version from OrderType.Market to OrderType.MarketClose.
Also, make sure your buy condition is limited to trigger on or before 1530, otherwise there will be no way to exit before the end of the day.
I'm checking if everything is ok with the strategy, I come across this.
The objective is to buy at the minimum of two candles and sell at the maximum of two candles.
The stop is in time 7 bars
Here you can see that it hit the target of 2 previous bars, but it didn't, and it gave a surreal gain, and it only closed after 7 bars.
coincidentally, this happened at 15:15, the last time I allow to open a trade
The objective is to buy at the minimum of two candles and sell at the maximum of two candles.
The stop is in time 7 bars
Here you can see that it hit the target of 2 previous bars, but it didn't, and it gave a surreal gain, and it only closed after 7 bars.
coincidentally, this happened at 15:15, the last time I allow to open a trade
The Buy order executed at 15:15 (because the bar of entry was 15:00) but the Sell at Limit block is conditioned to not process bars after 15:15. Hence the strategy has to wait until "Sell after 7 bars" comes to play. It's working exactly as you designed it. 🤷♂️
How to fix this?
Have you seen Cone's Post #15 ??
it worked, it was only put on sale until 16:30
Your Response
Post
Edit Post
Login is required