Page 86 of 180

Re: Coding Help

Posted: Mon Oct 15, 2018 11:43 pm
by Fahim
When I use the iCustom function do I HAVE to include all the parameters of the custom indicators or can I just use the indicator and what I really need to change?


Also Mntiwana I can’t find the files for tma centred bands with atr multipliers. Can you please post them here :)

Re: Coding Help

Posted: Tue Oct 16, 2018 2:24 am
by mntiwana
[quote=Fahim post_id=1295380397 time=1539603562 user_id=4931777]

Sorry,i did not get your asking/question - honestly i am zero in coding matters - :)

Re: Coding Help

Posted: Tue Oct 16, 2018 3:17 am
by mntiwana
Fahim wrote: Mon Oct 15, 2018 11:43 pm When I use the iCustom function do I HAVE to include all the parameters of the custom indicators or can I just use the indicator and what I really need to change?


Also Mntiwana I can’t find the files for tma centred bands with atr multipliers. Can you please post them here :)
Here is "TriangularMA centered Multiple bands" - ATR version
4 bands but no center line,you can tune any pair (band) to center any way as you have enough pairs
interpolated mtf-alerts
variety of alerting options

Re: Coding Help

Posted: Tue Oct 16, 2018 5:24 am
by Fahim
mntiwana wrote: Tue Oct 16, 2018 3:17 am

Here is "TriangularMA centered Multiple bands" - ATR version
4 bands but no center line,you can tune any pair (band) to center any way as you have enough pairs
interpolated mtf-alerts
variety of alerting options



Do you have the tma with atr multiplier? i really need that one, id love it if you posted that one for me :))

Re: Coding Help

Posted: Tue Oct 16, 2018 5:43 am
by mntiwana
Fahim wrote: Tue Oct 16, 2018 5:24 am




Do you have the tma with atr multiplier? i really need that one, id love it if you posted that one for me :))
Here you go - Mrtools tweaked version
Usual 7 prices - interpolated mtf and alerts including alert on current,on highlow true/false

Re: Coding Help

Posted: Tue Oct 16, 2018 5:55 am
by Fahim
mntiwana wrote: Tue Oct 16, 2018 5:43 am

Here you go - Mrtools tweaked version
Usual 7 prices - interpolated mtf and alerts including alert on current,on highlow true/false


thanks this is the right one i want but its not showing on my chart... did you post the correct version of it? it might be corrupted. if you could help that would be awesome, youre the best :)

Re: Coding Help

Posted: Tue Oct 16, 2018 6:26 am
by mntiwana
Fahim wrote: Tue Oct 16, 2018 5:55 am



thanks this is the right one i want but its not showing on my chart... did you post the correct version of it? it might be corrupted. if you could help that would be awesome, youre the best :)
You are right,that having 1090 bug problem,corrected and posted at in topic post,re-download it please,sorry for inconvenience

Re: Coding Help

Posted: Wed Oct 17, 2018 12:18 am
by Fahim
mntiwana wrote: Tue Oct 16, 2018 6:26 am
You are right,that having 1090 bug problem,corrected and posted at in topic post,re-download it please,sorry for inconvenience

thanks again. i need a code snippet which closes the trades at take profit or stop loss, can you help?

Re: Coding Help

Posted: Fri Oct 19, 2018 10:15 am
by samusmus
Need coding help for simple martingale EA. I tried to code it but I'm stuck. Anyone can lend a helping hand?

I need help with:
1. opening 20 martingale orders at this price:

Code: Select all

extern double entry_order1=1.31999;
extern double entry_order2=1.31989;
extern double entry_order3=1.31979;
extern double entry_order4=1.31969;
extern double entry_order5=1.31959;
extern double entry_order6=1.31949;
extern double entry_order7=1.31939;
extern double entry_order8=1.31929;
extern double entry_order9=1.31919;
extern double entry_order10=1.31909;
extern double entry_order11=1.31899;
extern double entry_order12=1.31799;
extern double entry_order13=1.31599;
extern double entry_order14=1.31499;
extern double entry_order15=1.31399;
extern double entry_order16=1.31299;
extern double entry_order17=1.31199;
extern double entry_order18=1.30399;
extern double entry_order19=1.30299;
extern double entry_order20=1.30199;
2. opening 20 martingale orders each [10] pips

Code: Select all

extern double level_pips=10;
3. First order is buy, if (current price>Moving Average) else sell

4. Steps:
Entry:
1. EA should open 1 pending LIMIT buy (on price: entry_order1) and open 1 pending LIMIT sell order (on price: entry_order2).
2. If buy or sell order is filled, delete the other pending order. |
3. If SL is hit, then again, set 2 pending orders with double lotsize
4. if filled again, delete the other pending order etc

Exit:
5. close all orders if TP is hit. Reset lotsize back to 0.01 lotsize.

Re: Coding Help

Posted: Sun Oct 21, 2018 6:00 am
by alpha24
Dear Mrtools,
please add another ADLine in this indicator coded by Great Coder Mladen.