Login Page - Create Account

Support Board


Date/Time: Tue, 16 Apr 2024 17:34:42 +0000



[Programming Help] - Exit order problem - Renko

View Count: 642

[2018-12-10 14:39:29]
User193773 - Posts: 1
Hello Sierra support
I'm pretty new to Sierra Chart and trying to implement an automated strategy based on renko.
So far I'm getting issues for closing orders. As you can see on my chartbook attached, the openings are displayed according to the script (green/red arrows) but closings (green/red squares) are not always displayed as they should.
I really don't know what I'm missing with my script.
Could you help me please on this problem ?
ps: I also attached my cpp script
Thanks a lot
Alex
attachment10.Chartbook_for_Support.Cht - Attached On 2018-12-10 14:36:30 UTC - Size: 30.03 KB - 261 views
attachmentAlex_strategy_exit.cpp - Attached On 2018-12-10 14:36:48 UTC - Size: 5.43 KB - 269 views
[2018-12-14 17:17:45]
bradh - Posts: 852
Your Buy Exit and Sell Exit logic is not working correctly. Attach a spreadsheet study to the chart to help debug the outputs. They are all zero. Your use of "else if" may be throwing it off, as the conditions may not be mutually exclusive.

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

Login

Login Page - Create Account