Re: Coding Help

1732
almostprofitable101 wrote: Wed Jan 29, 2025 10:50 am thanks im seeing alert pop-up, now i will adjust alert message👌🙌.
but if i change that code it messes up arrow system and places the arrow on previous bar, the indy is based of 3 histos allinging/closing and placing arrow on next open bar.
Okay where you have

[i-1] try changing it to [i+1]! Otherwise, you will have repainting issues.
These users thanked the author mrtools for the post:
almostprofitable101

Re: Coding Help

1735
andrei-1 wrote: Fri Feb 02, 2024 6:36 am Hooray, comrades!
4yawaYSZ08c.jpg
Hi Andrei,
A year has passed since.
Hope you did well in the electorate venture.
If you have time to revisit one of your indicators.

The plotting from applying the indi on the chart differs from that from strategy test.
Plotting from strategy test does what it was designed to be, which is starting from Opening Price of the first bar.

I tried to decipher from the codes, but with my green coding skill, I couldn't figure out what caused the difference in the plotting.
Any suggestion?
These users thanked the author Cazz223 for the post:
andrei-1


Re: Coding Help

1736
Cazz223 wrote: Mon Feb 10, 2025 8:28 pm Hi
I don't see any redrawing. If you used a strategy tester, it shouldn't work there.
I just noticed that for the indicator to work correctly, you need to load both timeframes (switch back and forth).

When I was doing PmP, I saw pictures that made my hands shake.
This was due to the lack of up-to-date charts of the second instrument.
I warned then (careful nonsense), but did not explain why.
Maybe in a few years I'll continue the topic of PmP and find them. :eh:

Re: Coding Help

1737
andrei-1 wrote: Mon Feb 10, 2025 10:47 pm I don't see any redrawing. If you used a strategy tester, it shouldn't work there.
I just noticed that for the indicator to work correctly, you need to load both timeframes (switch back and forth).

When I was doing PmP, I saw pictures that made my hands shake.
This was due to the lack of up-to-date charts of the second instrument.
I warned then (careful nonsense), but did not explain why.
Maybe in a few years I'll continue the topic of PmP and find them. :eh:
Снимок1.PNG

Thanks Andrei, for reverting.
It doesn't seem like repainting issue.
Somehow, the indicator plots correctly during backtesting.
When you put it on chart manually, the middle line (between B0 and B1) is not snap on the OpenPrice.

I am afraid I didn't get what you mean by "If you used a strategy tester, it shouldn't work there."
Would you mind elaborating please?
These users thanked the author Cazz223 for the post:
andrei-1

HappyRe: Coding Help

1740
Hi coders,

I already search screenshot but didn't find one. pls Let me know if there is one.

I need help for simple indicator to take screen shot every bar closed (choosen TF):
- with optional input delay (in seconds or minutes). ---> e.g I want taking screenshoot only after 3 minutes after bar closed.
- Screenshots' files will create a series name so will not rename old files.
- Can input folder location


Thanks for any response and feedback. rgds