Login Page - Create Account

Support Board


Date/Time: Wed, 23 Apr 2025 03:16:06 +0000



[Programming Help] - Alert Condition.

View Count: 203

[2024-12-15 10:09:27]
Tin43 - Posts: 141
I'm sorry I try to read the documentation, try to ask Groq etc to simply design a condition, but was impossible for me.

I want to trigger a buy market order 1 tick above a bullish candle (flex renko inverse) and the inverse for a bearish candle.

Believe it or not this may be simple, but for me is like a riddle.

Thanks, beforehand.

P.s: I'm trying to use the Trading based on alert condition or Color based on alert condition.
[2024-12-15 14:26:06]
Sawtooth - Posts: 4209
I want to trigger a buy market order 1 tick above a bullish candle
- Is the previous candle bearish?
- Is the entry at-bar-close of the bullish candle?
[2024-12-15 17:43:32]
Tin43 - Posts: 141
Hi, thanks for answering!

No.

There are Flex Renko Inverse.

When a Bullish Flex renko bar (8 ticks barsize - 1 baroffset) closes, I want that a buy market order triggers 1 tick above of the previous bullish candle.

And the same but inverse, for a Bearish candle.
[2024-12-15 18:31:14]
Sawtooth - Posts: 4209
I want that a buy market order triggers 1 tick above of the previous bullish candle.
So is the previous candle [-1] also bullish?
And the [-2] candle is bearish?
[2024-12-15 20:08:56]
Tin43 - Posts: 141
Sorry, i'm not good with English. I will try to explain with a screenshot.

https://imgur.com/a/GqrTpJa

As you can see there. What i want is that when the bullish candle (red arrow) closes, if the price goes 1 tick above the close of that candle, as you can see in the candle with the yellow arrow, then triggers a buy market order.

And the complete opposite for a bearish set up.
[2024-12-16 00:12:59]
Sawtooth - Posts: 4209
What i want is that when the bullish candle (red arrow) closes, if the price goes 1 tick above the close of that candle
Yes, but there needs to be a condition that differentiates the two bullish candles.
[2024-12-16 08:08:38]
Tin43 - Posts: 141
Sorry again. I'm not a coder.

My reasoning behind this, was: the code search for a bullish candle, once the price goes 1 tick above the close of that bullish candle it sets a market buy order, and of course in the meantime it stops searching for another bullish candle till the trade hits TP.

I thought that there was implied the condition. The condition to trigger is the close and the tick above, and the condition to finish and start searching again, was once TP was hit.

By the way.. THANKS for answering everything and your patience.

If my idea is wrong, don't worry. It was a stupid thought I was thinking about, nothing like Algo trading or things like that!
[2024-12-16 13:42:05]
Sawtooth - Posts: 4209
the code search for a bullish candle
If there are many bullish candles, which one is the 'start' candle?

I suggest that the 'start' be just after a transition from bearish candle to bullish candle.
IOW, a bearish candle one or two candles before the 'start' bullish candle.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account