Login Page - Create Account

Support Board


Date/Time: Sun, 25 Jul 2021 02:26:31 +0000



automated backtest Alerts Help

[2021-07-21 02:06:45]
adeelchaudhry1 - Posts: 6 | Ending Date: 2021-07-27
Hi,
I hope this finds you all well and in good health. I am fairly new to Sierra and have been stuck on trying to figure out backtesting with Alerts. I think my issue is a condition for my alerts, I was wondering if someone can help me with the syntax.
Currently, i have
" = OR(SG9>0,SG10>0)"
" = OR(SG11>0,SG12>0)"

Basically, I want it to generate a buy order for SG9 & SG10 ( Arrow Up) and a sell order for when SG 11 & SG12 ( Arrow Down) appear on the chart.

When I run the backtest, there are no trades that are being generated.
[2021-07-21 04:14:16]
Sierra Chart Engineering - Posts: 96917 | Ending Date: 2022-04-10
You will want to use this study for this:
https://www.sierrachart.com/index.php?page=doc/StudiesReference.php&ID=418&Name=Trading_System_Based_On_Alert_Condition

And you would need two instances of the study. One for a buy entry and one for a sell entry.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. If possible please keep your questions brief and to the point. Please be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2021-07-21 15:51:11]
adeelchaudhry1 - Posts: 6 | Ending Date: 2021-07-27
thank you for the prompt reply, i followed the instruction but still no trades popping up.
Here is the alerts I used to generate a buy alert in the trading system alert condition section.
=OR(ID20:SG9 > 0 , S10 > 0)

Both of the signals are in ID#20

Kindly, view the screenshot. You will see the up arrows SG9 and SG10 which are being displayed on the chart, but alerts wont generate any trades.
Date Time Of Last Edit: 2021-07-21 15:52:34
imageSC.png / V - Attached On 2021-07-21 15:50:00 UTC - Size: 44.2 KB - 7 views
[2021-07-21 16:30:05]
adeelchaudhry1 - Posts: 6 | Ending Date: 2021-07-27
i got it to work but some trades won't trigger off the alert condition!
its picking some alerts and trading and ignoring others
Date Time Of Last Edit: 2021-07-21 17:12:56
[2021-07-22 15:04:14]
bradh - Posts: 577 | Ending Date: 2021-08-14
How fast are you backtesting? If you are seeing unexpected results, try replaying the trade at speed = 1. If it works at normal speed then you are backtesting too fast.
[2021-07-23 02:06:12]
adeelchaudhry1 - Posts: 6 | Ending Date: 2021-07-27
I was backtesting pretty fast, gonna try slowing down, Thanks!

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

Login

Login Page - Create Account