Login Page - Create Account

Support Board


Date/Time: Thu, 16 May 2024 10:15:16 +0000



Post From: Orderflowanalytics-style reversal bars.

[2015-09-07 06:49:58]
Zdislav - Posts: 73
creazybears:
Thanks for the code review! I think the repainting may be solved.

I had this problem with my code: When the study calculated conditions for the current bar (not closed) it painted the mark at the moment all conditions were true, but if the condidtions changed (for example suddenly if there was one level less of strong prints on the ASK side) the mark remained printed. So when the bar closed, the print was still there. If I recalculated the study the print disapeared of course because there were just the last conditions. So that was the repainting... Your code corrects this issue I think.

Now, your code needs to be tweaked little bit. Your code prints the mark for all three levels, but there should be only one mark for the last level. Secondly, by the "memset" section of the code you erase all the marks in the given bar I think. Is it really important to use the memset?

Can the code look like this?
Date Time Of Last Edit: 2015-09-07 06:51:05
attachmentZdislav_OFA_Momentum2.cpp - Attached On 2015-09-07 06:50:53 UTC - Size: 4.04 KB - 633 views