Easy template/chart copy scripts/indicators

User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Easy template/chart copy scripts/indicators

Post by SteveHopwood »

Angat » Sun Feb 01, 2015 3:07 pm wrote:
trendinator » Mon Jan 19, 2015 1:40 pm wrote:ive made a mod and it works in 765. has been tested by another member here and described as 'flawless'

the only quirk is that you have to save a template first and then select that template in the input (actually its a feature ;) ). defaults to 'default'

the problem was ChartIndicatorDelete.
I tested this and it seems like it works in the fact it loads all the pairs and with the template, but each EA has a sad face. If I'm doing something wrong, please let me know, otherwise I take it this mod still needs a little tweaking.

EDIT: The EA's Allow Live Trading gets turned off even though the template is saved with it on.
Read 'Subsequent edit' in post 1. It always helps if you read the info I post.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
Reaper
Trader
Posts: 476
Joined: Sat Feb 09, 2013 12:07 am
Location: UK

Easy template/chart copy scripts/indicators

Post by Reaper »

SteveHopwood » Sun Feb 01, 2015 6:57 pm wrote:
Angat » Sun Feb 01, 2015 3:07 pm wrote:
trendinator » Mon Jan 19, 2015 1:40 pm wrote:ive made a mod and it works in 765. has been tested by another member here and described as 'flawless'

the only quirk is that you have to save a template first and then select that template in the input (actually its a feature ;) ). defaults to 'default'

the problem was ChartIndicatorDelete.
I tested this and it seems like it works in the fact it loads all the pairs and with the template, but each EA has a sad face. If I'm doing something wrong, please let me know, otherwise I take it this mod still needs a little tweaking.

EDIT: The EA's Allow Live Trading gets turned off even though the template is saved with it on.
Read 'Subsequent edit' in post 1. It always helps if you read the info I post.

:xm:
Not sure if that's referring to the same issue. I create a template with my chart settings, I set up the PP EA on one chart, it shows a happy face. I then use the script, it loads 20+ charts with the EA and deletes the original. All charts now have the EA but show an unhappy face i.e. allow live trading is off for each one.

If this is normal behaviour for the script, then that's still ok. I really don't mind going through 20+ charts and enabling Allow Live Trading. It takes about 2minutes really.
:clap:

UPDATE: After rereading Steve's first post 5 more times, I have gathered this is normal behaviour, so feel free to ignore this issue. Much appreciated for this script. :)
Last edited by Reaper on Sun Feb 01, 2015 10:45 pm, edited 1 time in total.
.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Easy template/chart copy scripts/indicators

Post by SteveHopwood »

Angat » Sun Feb 01, 2015 8:17 pm wrote:
Not sure if that's referring to the same issue. I create a template with my chart settings, I set up the PP EA on one chart, it shows a happy face. I then use the script, it loads 20+ charts with the EA and deletes the original. All charts now have the EA but show an unhappy face i.e. allow live trading is off for each one.

If this is normal behaviour for the script, then that's still ok. I really don't mind going through 20+ charts and enabling Allow Live Trading. It takes about 2minutes really.
:clap:
Your choice whether you take any notice of me or not. You are of course free to carry on doing it the hard way.

Further posts about this will be deleted.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Raj4x

Easy template/chart copy scripts/indicators

Post by Raj4x »

Hi all,

I amended the "Charts Into Alphabetical Order script" to handle suffices automatically.

I have tested the scipt for LMAX symbols (which has suffix ".lmx") and it works nicely.

You can change the suffix in the settings.

Cheers, San.
You do not have the required permissions to view the files attached to this post.
madopter1
Trader
Posts: 23
Joined: Mon Apr 13, 2015 10:47 pm

Easy template/chart copy scripts/indicators

Post by madopter1 »

trendinator » Mon Jan 19, 2015 1:40 pm wrote:ive made a mod and it works in 765. has been tested by another member here and described as 'flawless'

the only quirk is that you have to save a template first and then select that template in the input (actually its a feature ;) ). defaults to 'default'

the problem was ChartIndicatorDelete.
Open Charts In Alphabetical Order Indicator_a (new builds compatible) has been very helpful however I'm not able to successfully add more pairs to it.

I've messed around with the xx and yy arrays, lengths, etc., and also with the PAIRS and INDEX strings.
Could someone who understands binary :clap: let me know how I can add XAU, XAG, maybe some indices like US30, etc.?

Thanks.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Easy template/chart copy scripts/indicators

Post by renexxxx »

madopter1 » Sat Apr 25, 2015 4:33 am wrote:
trendinator » Mon Jan 19, 2015 1:40 pm wrote:ive made a mod and it works in 765. has been tested by another member here and described as 'flawless'

the only quirk is that you have to save a template first and then select that template in the input (actually its a feature ;) ). defaults to 'default'

the problem was ChartIndicatorDelete.
Open Charts In Alphabetical Order Indicator_a (new builds compatible) has been very helpful however I'm not able to successfully add more pairs to it.

I've messed around with the xx and yy arrays, lengths, etc., and also with the PAIRS and INDEX strings.
Could someone who understands binary :clap: let me know how I can add XAU, XAG, maybe some indices like US30, etc.?

Thanks.
I have made a few changes to the code, and now it should take all the symbols in your market watch panel. I haven't tested it extensively, so any problems let me know.
You do not have the required permissions to view the files attached to this post.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Easy template/chart copy scripts/indicators

Post by renexxxx »

Here is a little script that will toggle the "Allow live trading"-checkbox on all charts. Note the following:

1. It really is a "toggle": If the "allow live trading" checkbox was on, it will switch it off. And vice versa.
2. It works via editing the Expert Properties and pressing the Ok button, programmatically. That also means that the EA will be reloaded and the EAs OnInit() function will be re-run.
3. This would not work very well for those EAs that have an infinite loop inside the OnTick() (or start()) function (eg. when the AlwaysOn parameter is true), as it is hard to get the Expert Properties dialog up when the EA is sleeping. In that case, it is best to switch the "AutoTrading" button off first.

This script may be handy in combination with the "Open Charts In Alphabetical Order Indicator" - indicator, although the "Charts into Alphabetical Order script" - script would probably achieve the same, but in a different way (by recreating the charts).
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Easy template/chart copy scripts/indicators

Post by SteveHopwood »

renexxxx » Sun Apr 26, 2015 11:33 am wrote:Here is a little script that will toggle the "Allow live trading"-checkbox on all charts. Note the following:

1. It really is a "toggle": If the "allow live trading" checkbox was on, it will switch it off. And vice versa.
2. It works via editing the Expert Properties and pressing the Ok button, programmatically. That also means that the EA will be reloaded and the EAs OnInit() function will be re-run.
3. This would not work very well for those EAs that have an infinite loop inside the OnTick() (or start()) function (eg. when the AlwaysOn parameter is true), as it is hard to get the Expert Properties dialog up when the EA is sleeping. In that case, it is best to switch the "AutoTrading" button off first.

This script may be handy in combination with the "Open Charts In Alphabetical Order Indicator" - indicator, although the "Charts into Alphabetical Order script" - script would probably achieve the same, but in a different way (by recreating the charts).
Nice one Rene. :clap:

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
madopter1
Trader
Posts: 23
Joined: Mon Apr 13, 2015 10:47 pm

Easy template/chart copy scripts/indicators

Post by madopter1 »

renexxxx » Sun Apr 26, 2015 11:33 am wrote:Here is a little script that will toggle the "Allow live trading"-checkbox on all charts. Note the following:

1. It really is a "toggle": If the "allow live trading" checkbox was on, it will switch it off. And vice versa.
2. It works via editing the Expert Properties and pressing the Ok button, programmatically. That also means that the EA will be reloaded and the EAs OnInit() function will be re-run.
3. This would not work very well for those EAs that have an infinite loop inside the OnTick() (or start()) function (eg. when the AlwaysOn parameter is true), as it is hard to get the Expert Properties dialog up when the EA is sleeping. In that case, it is best to switch the "AutoTrading" button off first.

This script may be handy in combination with the "Open Charts In Alphabetical Order Indicator" - indicator, although the "Charts into Alphabetical Order script" - script would probably achieve the same, but in a different way (by recreating the charts).
Thanks for this one renexxxx

Are you able to create a script or indicator (similar to the user-selectable Open Charts in Alphabetical Order) that will remove the symbols from the Market Watch panel? The purpose of this would be to speed up Empty4 since Empty4 wouldn't have to download their tick data all the time and potentially an antivirus program spending resources checking it.

Thanks :cheer:
xray2
Posts: 9
Joined: Tue Dec 08, 2015 3:19 am

Easy template/chart copy scripts/indicators

Post by xray2 »

renexxxx » Sat Apr 25, 2015 9:07 am wrote:
I have made a few changes to the code, and now it should take all the symbols in your market watch panel. I haven't tested it extensively, so any problems let me know.


I'm not sure if I am doing something wrong. I modified v1 to include .bo extensins for Binary Options. This version worked fine but seemed to included the "Open Charts in Alphabetical Order Indicator" on all charts. Not sure why because from reading here it says the first chart would be deleted, and I assumed (maybe incorrectly) the indicator would be removed as well.

On version it opens the charts up and removes the indicator but only the default template is loaded. all indicators are removed. Is thiss how it's meant to work as it seems counterintuitive.

Btw this is a great tool, so congrats to the people involved.
Post Reply

Return to “Chart/template copying and history loading”