Page 174 of 180

Re: Coding Help

Posted: Wed Jan 29, 2025 10:50 am
by almostprofitable101
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.

Re: Coding Help

Posted: Wed Jan 29, 2025 10:55 am
by mrtools
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.

Re: Coding Help

Posted: Wed Jan 29, 2025 11:04 am
by almostprofitable101
mrtools wrote: Wed Jan 29, 2025 10:55 am Okay where you have

[i-1] try changing it to [i+1]! Otherwise, you will have repainting issues.
( im not a coder im not sure which exact bit you mean sorry) could you show me which bit i think its worse now 🤦‍♂️

Re: Coding Help

Posted: Wed Jan 29, 2025 12:58 pm
by mrtools
almostprofitable101 wrote: Wed Jan 29, 2025 11:04 am ( im not a coder im not sure which exact bit you mean sorry) could you show me which bit i think its worse now 🤦‍♂️
No problem, maybe this will be closer. But not seeing how the histograms are coded not sure.

Re: Coding Help

Posted: Mon Feb 10, 2025 8:28 pm
by Cazz223
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?

Re: Coding Help

Posted: Mon Feb 10, 2025 10:47 pm
by andrei-1
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

Posted: Tue Feb 11, 2025 3:40 am
by Cazz223
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?

Re: Coding Help

Posted: Tue Feb 11, 2025 4:41 am
by andrei-1
Cazz223 wrote: Tue Feb 11, 2025 3:40 am middle line (between B0 and B1) is not snap on the OpenPrice. :wtf:
I was referring to the regular tester in the terminal.
The indicator uses iOpen(NULL,TimeFrame,y).
Its use has long been banned by MQ so that the grails do not work in the tester. :eh:

Re: Coding Help

Posted: Wed Feb 12, 2025 11:17 pm
by pin12
Hi !

Is it possible to modify the coding of this expert advisor so that it works in reverse, so that instead of buying, it sells and vice versa?


Thanks for any help on this

Re: Coding Help

Posted: Thu Feb 13, 2025 9:38 pm
by FiveS
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