• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 6:58pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:58pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

I will code your scalping EAs for no charge 54 replies

I will code your pivot EAs for no charge 20 replies

Need help to code EAs for MT4 and MT5 4 replies

EAs and indicators relating to moutaki... 22 replies

InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 40,934
Attachments: I will code your EAs and Indicators for no charge
Exit Attachments
Tags: I will code your EAs and Indicators for no charge
Cancel

I will code your EAs and Indicators for no charge

  • Last Post
  •  
  • 1 26582659Page 266026612662 2975
  • 1 Page 2660 2975
  •  
  • Post #53,181
  • Quote
  • Edited Jul 19, 2022 6:26am Jul 18, 2022 11:52am | Edited Jul 19, 2022 6:26am
  •  Mahir
  • | Joined Jul 2022 | Status: Member | 12 Posts
Dear traders
Let me introduce you to a script which tells you how much a symbol is profitable and growing at a given time frame on the scale of 0 to 100.
higher the outcome higher the profit ratio along with higher the growth of symbol.

if the outcome is negative get the hell out!! from that symbol.

many many thanks to jeanlouie and BlueRain for indicating the way.

Inserted Code
void OnStart()
  {
   double     ATR_Data[];
   ArraySetAsSeries(ATR_Data,true);
   CopyBuffer(iATR(_Symbol,PERIOD_CURRENT,27), 0, 0, 100, ATR_Data);
   double   ATR_Pure    = (NormalizeDouble(ATR_Data[0],Digits()))/_Point;
 
   int   SPREAD_Pure = SymbolInfoInteger(Symbol(), SYMBOL_SPREAD);
 
   MqlRates PRICE_Information[];
   ArraySetAsSeries(PRICE_Information,true);
   CopyRates(_Symbol,PERIOD_CURRENT,0,Bars(_Symbol,PERIOD_CURRENT),PRICE_Information);
      
      double   HIGHEST_Data[];
      ArraySetAsSeries(HIGHEST_Data,true);
      CopyHigh(_Symbol,PERIOD_CURRENT,0,27,HIGHEST_Data);
      double   HIGH_Pure   =  (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data,0,27)].high),Digits()))/_Point;
      
      double   LOWEST_Data[];
      ArraySetAsSeries(LOWEST_Data,true);
      CopyLow(_Symbol,PERIOD_CURRENT,0,27,LOWEST_Data);
      double   LOW_Pure   =  (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data,0,27)].low),Digits()))/_Point;
 
   double   PROFIT   =  NormalizeDouble(((HIGH_Pure-LOW_Pure)/SPREAD_Pure),2);
   double   GROWTH   =  NormalizeDouble(((ATR_Pure/SPREAD_Pure)-1),2);
   Print("Profit="+PROFIT+","+"Growth="+GROWTH);
  }
 
2
  • Post #53,182
  • Quote
  • Jul 18, 2022 12:05pm Jul 18, 2022 12:05pm
  •  Samalin
  • Joined Apr 2017 | Status: Member | 663 Posts
Good Day Coders, thanks for all your efforts to help may you all continue to remain blessed, i want to change this EA concept
please i hope any Coder will have free time to help

i change filter to WADhttps://www.forexfactory.com/thread/...6#post14057706
1. strategy no longer MA Cross but (2)candle close above/below MA after cross
2. add MA 10 simple high/8 simple low, price close,
3. both MA and WAD in the EA will be MTF (to help use high timeframe direction )
Attached Image (click to enlarge)
Click to Enlarge

Name: FF.png
Size: 10 KB
Attached File(s)
File Type: mq4 2ma crossover EA.mq4   30 KB | 53 downloads
 
 
  • Post #53,183
  • Quote
  • Jul 18, 2022 12:52pm Jul 18, 2022 12:52pm
  •  nomanali627
  • | Joined Jul 2022 | Status: Junior Member | 1 Post
Sir I want an EA with these qualities
Time frame 5 minutes
Entry when an engulfing candle forms at demand or supply area of 1 hour time frame
Exit when at the next demand/supply area
Thanks in advance
 
 
  • Post #53,184
  • Quote
  • Jul 18, 2022 12:57pm Jul 18, 2022 12:57pm
  •  Samalin
  • Joined Apr 2017 | Status: Member | 663 Posts
Quoting Mahir
Disliked
Dear traders Let me introduce you to a script which tells you how much a symbol is profitable and growing at a given time frame on the scale of 0 to 100. higher the outcome higher the profit ratio along with higher the growth of symbol. if the outcome is negative get the hell out!! from that symbol. many many thanks to jeanlouie and BlueRain for indicating the way. void OnStart() { double ATR_Data[]; ArraySetAsSeries(ATR_Data,true); CopyBuffer(iATR(_Symbol,PERIOD_CURRENT,27),...
Ignored

thank you Sir for sharing your idea and work, Please can you share the compiled version? i copy/past this is what i got and i dont know how to fix
Attached Image (click to enlarge)
Click to Enlarge

Name: FF.png
Size: 77 KB
 
 
  • Post #53,185
  • Quote
  • Jul 18, 2022 1:53pm Jul 18, 2022 1:53pm
  •  Samalin
  • Joined Apr 2017 | Status: Member | 663 Posts
Quoting Mahir
Disliked
{quote} this is mt5 script not mt4 it attached below with screen shot {file} {image} {image}
Ignored
please kindly share if you compile on mt4
 
 
  • Post #53,186
  • Quote
  • Jul 18, 2022 2:29pm Jul 18, 2022 2:29pm
  •  Samalin
  • Joined Apr 2017 | Status: Member | 663 Posts
https://www.chartswithjake.com/94-2/
Inserted Video


please kindly help to make this strategy as one indicators, am having difficulty uploading the video but the above link will
Attached Image(s) (click to enlarge)
Click to Enlarge

Name: FF1.png
Size: 40 KB
Click to Enlarge

Name: FF.png
Size: 41 KB
 
 
  • Post #53,187
  • Quote
  • Edited 3:27am Jul 19, 2022 3:15am | Edited 3:27am
  •  Hammertop
  • | Joined May 2014 | Status: Member | 568 Posts
Hello. Any chance to add 2 options to this ATR indicator in order to change both the period and the time frame on which the ATR is calculated? I believe by default the period is 7 and the time frame is D1 at the moment. I would really appreciate it. Thank you
Attached Image (click to enlarge)
Click to Enlarge

Name: 2022-07-19_08-26-41.jpg
Size: 190 KB
Attached File(s)
File Type: mq4 ATRprojections.mq4   8 KB | 84 downloads
 
 
  • Post #53,188
  • Quote
  • Edited 8:32am Jul 19, 2022 4:45am | Edited 8:32am
  •  eess
  • Joined Feb 2021 | Status: Member | 476 Posts
Quoting Paymanz
Disliked
{quote} thanks jeanlouie , would you consider adding trend line support(ideally only the left handle to be magnetic) and also for rectangles to be able to extend them without invalidate the zone you still have to use the right corners can you please add something like this tool with only one vertical line on the right end of rectangle that lets you to extend without moving the original position of rectangle. https://www.mql5.com/en/market/produ...source=Unknown
Ignored


If you don't mind, I wrote this which handles only rectangles. I don't really have time or interest to develop this tool any further since I myself only use trendlines and rectangles most of the time, besides, the default MT4 magnet sensitivity has taken care of some other objects like trendline etc, so by default, trendlines has the magnet activated as what Jeanlouie has explained to you, and I don't think we can write a custom program to remove a feature which MT4 by default has, which means custom program will not be able to remove the right corner magnetism in trendlines. Please click the animated gif to watch how to use, basically this indicator I wrote has the magnetism on the corners of rectangles + vertical guide line on right edge on double click of rectangle. To remove the vertical guideline, just press the ESC key or double click on the rectangle to deselect.
Attached Image (click to enlarge)
Click to Enlarge

Name: RectMagnet.gif
Size: 68 KB
Attached File(s)
File Type: ex4 esRectMagnet.ex4   14 KB | 60 downloads
 
1
  • Post #53,189
  • Quote
  • Jul 19, 2022 4:54am Jul 19, 2022 4:54am
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 1,053 Posts
Quoting PapitoBanou

Quoting BlueRain
Disliked
{quote} i had one similar one - not dashboard - already and just modified quick. You will get alert when crossing happens. ( MA cross Lower BB up and MA Cross High BB down ) Someone can make dashboard using this indicator if possible. Updated: Scanner added. I had similar one so just changed how it gets value. ( Not Tested ) {file} {file}
Ignored
Now, I was able to test out and there was bug - it didn't pickup all symbols.

this scanner version is fixed one and tested.
Attached File(s)
File Type: mq4 MABB Cross Signal Scanner v1.0.mq4   56 KB | 141 downloads
File Type: mq4 MABB_Crossing_Alert V1.mq4   13 KB | 141 downloads
 
 
  • Post #53,190
  • Quote
  • Jul 19, 2022 4:58am Jul 19, 2022 4:58am
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 1,053 Posts
Quoting Hammertop
Disliked
Hello. Any chance to add 2 options to this ATR indicator in order to change both the period and the time frame on which the ATR is calculated? I believe by default the period is 7 and the time frame is D1 at the moment. I would really appreciate it. Thank you {file} {image}
Ignored
I am sorry but this is not the original code - it is stolen / decompiled version which I can't help on.
Please supply original code if you are asking for help.
 
 
  • Post #53,191
  • Quote
  • Edited 6:10am Jul 19, 2022 5:40am | Edited 6:10am
  •  Hammertop
  • | Joined May 2014 | Status: Member | 568 Posts
Quoting BlueRain
Disliked
{quote} I am sorry but this is not the original code - it is stolen / decompiled version which I can't help on. Please supply original code if you are asking for help.
Ignored
I'm sorry but that's all I have. I don't even remember where I downloaded it. Unfortunately the website mentioned in the code doesn't even exist anymore

EDIT: I just did a quick search on the Internet and quite a few sites provide it. Unfortunately it's always the same decompiled indi. Really nothing you can do since the original site is gone? Sorry for persisting.
 
 
  • Post #53,192
  • Quote
  • Jul 19, 2022 5:45am Jul 19, 2022 5:45am
  •  aandragon
  • | Joined Jun 2016 | Status: Member | 29 Posts
Quoting Samalin
Disliked
https://www.chartswithjake.com/94-2/ https://www.youtube.com/watch?v=f2ceE2N4ND0 please kindly help to make this strategy as one indicators, am having difficulty uploading the video but the above link will {image} {image}
Ignored
Hi. Its not clear what you want: there are two moing averages one based on the opening price and the other on the close but I have no idea what is in the indicator window (the white and green lines). Let me know what this indicator is and I can give you an combined indicator in a flash!

Thanks
 
 
  • Post #53,193
  • Quote
  • Jul 19, 2022 8:15am Jul 19, 2022 8:15am
  •  tintep
  • Joined Nov 2019 | Status: Member | 223 Posts
Quoting T4Trade
Disliked
{quote} Dear Mentor, is it please possible to add time frame in alerts because i use this indcator on 1h and 15 min time frame and when alert comes,i dono which tf it is refering to,thanks.
Ignored
Hi T4Trade try this . If you like zigzag I adapt " elliot-waves-oscillator" can draw line when mark high mark low. same picture. I think you will like this.
Attached Image (click to enlarge)
Click to Enlarge

Name: 2022-07-19_191033.jpg
Size: 293 KB
Attached File(s)
File Type: ex4 ZigZag_HH-HL-LH-LL_Button2.ex4   72 KB | 135 downloads
File Type: ex4 elliot-waves-oscillator-BT.ex4   42 KB | 147 downloads
 
1
  • Post #53,194
  • Quote
  • Edited 9:11am Jul 19, 2022 8:21am | Edited 9:11am
  •  Samalin
  • Joined Apr 2017 | Status: Member | 663 Posts
Quoting aandragon
Disliked
{quote} Hi. Its not clear what you want: there are two moing averages one based on the opening price and the other on the close but I have no idea what is in the indicator window (the white and green lines). Let me know what this indicator is and I can give you an combined indicator in a flash! Thanks
Ignored
thank you so much for your interest to help the indicator below is william accumulation and distribution(attach below pls kindly help to make as MTF in project)
yes the first image is 8 simple MA Open , and 8 simple MA close, the second image is 10 simple MA high and 8 simple MA low (all MA on MTF)

whichever MA settings or mtf used,
if price 2 close below the MA and William accumulation/distribution cross down alert arrow or vline sell
if price 2 close above the MA and William accumulation/distribution cross up alert arrow or vline buy
if higher timeframe is selected for william and trend is buy then only buy will alert if candle close above MA, same with sell side
Attached File(s)
File Type: mq4 !williams ad ma indicator_v2.mq4   19 KB | 92 downloads
 
 
  • Post #53,195
  • Quote
  • Jul 19, 2022 8:24am Jul 19, 2022 8:24am
  •  tintep
  • Joined Nov 2019 | Status: Member | 223 Posts
Quoting Hammertop
Disliked
{quote} I'm sorry but that's all I have. I don't even remember where I downloaded it. Unfortunately the website mentioned in the code doesn't even exist anymore EDIT: I just did a quick search on the Internet and quite a few sites provide it. Unfortunately it's always the same decompiled indi. Really nothing you can do since the original site is gone? Sorry for persisting.
Ignored
Hi Hammertop . I have this . I don't remember I load from? this is same original.
Attached File(s)
File Type: mq4 ATRprojections button.mq4   12 KB | 110 downloads
 
1
  • Post #53,196
  • Quote
  • Jul 19, 2022 8:38am Jul 19, 2022 8:38am
  •  Hammertop
  • | Joined May 2014 | Status: Member | 568 Posts
Quoting tintep
Disliked
{quote} Hi Hammertop . I have this . I don't remember I load from? this is same original. {file}
Ignored
Thanks very much, tintep. It looks like it has the same source code but someone modified it to add a button. I will check out the website mentioned in the code which I didn't know.
 
 
  • Post #53,197
  • Quote
  • Jul 19, 2022 9:39am Jul 19, 2022 9:39am
  •  emmy4
  • | Joined Aug 2009 | Status: Member | 137 Posts
Hello Coders, please help to repair the alert of this indicator, am not getting any alert.
Thanks in advance.
Attached File(s)
File Type: mq4 HOLY GRAIL SYSTEM V2.5.mq4   34 KB | 244 downloads
 
1
  • Post #53,198
  • Quote
  • Jul 19, 2022 11:40am Jul 19, 2022 11:40am
  •  Mahir
  • | Joined Jul 2022 | Status: Member | 12 Posts
some one help me fix this new problem
added multiple time frame for atr with different integer and different buffer number and yet outcome is wrong
any ideas traders
Inserted Code
void OnStart()
  {
   int   SPREAD_Pure = SymbolInfoInteger(Symbol(), SYMBOL_SPREAD);
   MqlRates PRICE_Information[];
   ArraySetAsSeries(PRICE_Information,true);
   CopyRates(_Symbol,PERIOD_CURRENT,0,Bars(_Symbol,PERIOD_CURRENT),PRICE_Information);

   double   ATR_Data_M1[];
   ArraySetAsSeries(ATR_Data_M1,true);
   CopyBuffer(iATR(_Symbol,PERIOD_M1,27),0, 0, 100, ATR_Data_M1);
   double   ATR_Pure_M1 = (NormalizeDouble(ATR_Data_M1[0],Digits()))/_Point;
   double   HIGHEST_Data_M1[];
   ArraySetAsSeries(HIGHEST_Data_M1,true);
   CopyHigh(_Symbol,PERIOD_M1,0,27,HIGHEST_Data_M1);
   double   HIGH_Pure_M1   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_M1,0,27)].high),Digits()))/_Point;
   double   LOWEST_Data_M1[];
   ArraySetAsSeries(LOWEST_Data_M1,true);
   CopyLow(_Symbol,PERIOD_M1,0,27,LOWEST_Data_M1);
   double   LOW_Pure_M1    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_M1,0,27)].low),Digits()))/_Point;
   double   PROFIT_M1   =  NormalizeDouble(((HIGH_Pure_M1-LOW_Pure_M1-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_M1   =  NormalizeDouble(((ATR_Pure_M1/SPREAD_Pure)-1),2);

   double   ATR_Data_M3[];
   ArraySetAsSeries(ATR_Data_M3,true);
   CopyBuffer(iATR(_Symbol,PERIOD_M3,27), 1, 0, 100, ATR_Data_M3);
   double   ATR_Pure_M3 = (NormalizeDouble(ATR_Data_M3[0],Digits()))/_Point;
   double   HIGHEST_Data_M3[];
   ArraySetAsSeries(HIGHEST_Data_M3,true);
   CopyHigh(_Symbol,PERIOD_M3,0,27,HIGHEST_Data_M3);
   double   HIGH_Pure_M3   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_M3,0,27)].high),Digits()))/_Point;
   double   LOWEST_Data_M3[];
   ArraySetAsSeries(LOWEST_Data_M3,true);
   CopyLow(_Symbol,PERIOD_M3,0,27,LOWEST_Data_M3);
   double   LOW_Pure_M3    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_M3,0,27)].low),Digits()))/_Point;
   double   PROFIT_M3   =  NormalizeDouble(((HIGH_Pure_M3-LOW_Pure_M3-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_M3   =  NormalizeDouble(((ATR_Pure_M3/SPREAD_Pure)-1),2);

   double   ATR_Data_M5[];
   ArraySetAsSeries(ATR_Data_M5,true);
   CopyBuffer(iATR(_Symbol,PERIOD_M5,24), 2, 0, 100, ATR_Data_M5);
   double   ATR_Pure_M5 = (NormalizeDouble(ATR_Data_M5[0],Digits()))/_Point;
   double   HIGHEST_Data_M5[];
   ArraySetAsSeries(HIGHEST_Data_M5,true);
   CopyHigh(_Symbol,PERIOD_M5,0,24,HIGHEST_Data_M5);
   double   HIGH_Pure_M5   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_M5,0,24)].high),Digits()))/_Point;
   double   LOWEST_Data_M5[];
   ArraySetAsSeries(LOWEST_Data_M5,true);
   CopyLow(_Symbol,PERIOD_M5,0,24,LOWEST_Data_M5);
   double   LOW_Pure_M5    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_M5,0,24)].low),Digits()))/_Point;
   double   PROFIT_M5   =  NormalizeDouble(((HIGH_Pure_M5-LOW_Pure_M5-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_M5   =  NormalizeDouble(((ATR_Pure_M5/SPREAD_Pure)-1),2);

   double   ATR_Data_M10[];
   ArraySetAsSeries(ATR_Data_M10,true);
   CopyBuffer(iATR(_Symbol,PERIOD_M10,13), 3, 0, 100, ATR_Data_M10);
   double   ATR_Pure_M10 = (NormalizeDouble(ATR_Data_M10[0],Digits()))/_Point;
   double   HIGHEST_Data_M10[];
   ArraySetAsSeries(HIGHEST_Data_M10,true);
   CopyHigh(_Symbol,PERIOD_M10,0,13,HIGHEST_Data_M10);
   double   HIGH_Pure_M10   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_M10,0,13)].high),Digits()))/_Point;
   double   LOWEST_Data_M10[];
   ArraySetAsSeries(LOWEST_Data_M10,true);
   CopyLow(_Symbol,PERIOD_M10,0,13,LOWEST_Data_M10);
   double   LOW_Pure_M10    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_M10,0,13)].low),Digits()))/_Point;
   double   PROFIT_M10   =  NormalizeDouble(((HIGH_Pure_M10-LOW_Pure_M10-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_M10   =  NormalizeDouble(((ATR_Pure_M10/SPREAD_Pure)-1),2);

   double   ATR_Data_M15[];
   ArraySetAsSeries(ATR_Data_M15,true);
   CopyBuffer(iATR(_Symbol,PERIOD_M15,13), 4, 0, 100, ATR_Data_M15);
   double   ATR_Pure_M15 = (NormalizeDouble(ATR_Data_M15[0],Digits()))/_Point;
   double   HIGHEST_Data_M15[];
   ArraySetAsSeries(HIGHEST_Data_M15,true);
   CopyHigh(_Symbol,PERIOD_M15,0,13,HIGHEST_Data_M15);
   double   HIGH_Pure_M15   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_M15,0,13)].high),Digits()))/_Point;
   double   LOWEST_Data_M15[];
   ArraySetAsSeries(LOWEST_Data_M15,true);
   CopyLow(_Symbol,PERIOD_M15,0,13,LOWEST_Data_M15);
   double   LOW_Pure_M15    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_M15,0,13)].low),Digits()))/_Point;
   double   PROFIT_M15   =  NormalizeDouble(((HIGH_Pure_M15-LOW_Pure_M15-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_M15   =  NormalizeDouble(((ATR_Pure_M15/SPREAD_Pure)-1),2);

   double   ATR_Data_M30[];
   ArraySetAsSeries(ATR_Data_M30,true);
   CopyBuffer(iATR(_Symbol,PERIOD_M30,13), 5, 0, 100, ATR_Data_M30);
   double   ATR_Pure_M30 = (NormalizeDouble(ATR_Data_M30[0],Digits()))/_Point;
   double   HIGHEST_Data_M30[];
   ArraySetAsSeries(HIGHEST_Data_M30,true);
   CopyHigh(_Symbol,PERIOD_M30,0,13,HIGHEST_Data_M30);
   double   HIGH_Pure_M30   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_M30,0,13)].high),Digits()))/_Point;
   double   LOWEST_Data_M30[];
   ArraySetAsSeries(LOWEST_Data_M30,true);
   CopyLow(_Symbol,PERIOD_M30,0,13,LOWEST_Data_M30);
   double   LOW_Pure_M30    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_M30,0,13)].low),Digits()))/_Point;
   double   PROFIT_M30   =  NormalizeDouble(((HIGH_Pure_M30-LOW_Pure_M30-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_M30   =  NormalizeDouble(((ATR_Pure_M30/SPREAD_Pure)-1),2);

   double   ATR_Data_H1[];
   ArraySetAsSeries(ATR_Data_H1,true);
   CopyBuffer(iATR(_Symbol,PERIOD_H1,12), 6, 0, 100, ATR_Data_H1);
   double   ATR_Pure_H1 = (NormalizeDouble(ATR_Data_H1[0],Digits()))/_Point;
   double   HIGHEST_Data_H1[];
   ArraySetAsSeries(HIGHEST_Data_H1,true);
   CopyHigh(_Symbol,PERIOD_H1,0,12,HIGHEST_Data_H1);
   double   HIGH_Pure_H1   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_H1,0,12)].high),Digits()))/_Point;
   double   LOWEST_Data_H1[];
   ArraySetAsSeries(LOWEST_Data_H1,true);
   CopyLow(_Symbol,PERIOD_H1,0,12,LOWEST_Data_H1);
   double   LOW_Pure_H1    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_H1,0,12)].low),Digits()))/_Point;
   double   PROFIT_H1   =  NormalizeDouble(((HIGH_Pure_H1-LOW_Pure_H1-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_H1   =  NormalizeDouble(((ATR_Pure_H1/SPREAD_Pure)-1),2);

   double   ATR_Data_H3[];
   ArraySetAsSeries(ATR_Data_H3,true);
   CopyBuffer(iATR(_Symbol,PERIOD_H3,8), 7, 0, 100, ATR_Data_H3);
   double   ATR_Pure_H3 = (NormalizeDouble(ATR_Data_H3[0],Digits()))/_Point;
   double   HIGHEST_Data_H3[];
   ArraySetAsSeries(HIGHEST_Data_H3,true);
   CopyHigh(_Symbol,PERIOD_H3,0,8,HIGHEST_Data_H3);
   double   HIGH_Pure_H3   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_H3,0,8)].high),Digits()))/_Point;
   double   LOWEST_Data_H3[];
   ArraySetAsSeries(LOWEST_Data_H3,true);
   CopyLow(_Symbol,PERIOD_H3,0,8,LOWEST_Data_H3);
   double   LOW_Pure_H3    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_H3,0,8)].low),Digits()))/_Point;
   double   PROFIT_H3   =  NormalizeDouble(((HIGH_Pure_H3-LOW_Pure_H3-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_H3   =  NormalizeDouble(((ATR_Pure_H3/SPREAD_Pure)-1),2);

   double   ATR_Data_H6[];
   ArraySetAsSeries(ATR_Data_H6,true);
   CopyBuffer(iATR(_Symbol,PERIOD_H6,4), 8, 0, 100, ATR_Data_H6);
   double   ATR_Pure_H6 = (NormalizeDouble(ATR_Data_H6[0],Digits()))/_Point;
   double   HIGHEST_Data_H6[];
   ArraySetAsSeries(HIGHEST_Data_H6,true);
   CopyHigh(_Symbol,PERIOD_H6,0,4,HIGHEST_Data_H6);
   double   HIGH_Pure_H6   = (NormalizeDouble((PRICE_Information[ArrayMaximum(HIGHEST_Data_H6,0,4)].high),Digits()))/_Point;
   double   LOWEST_Data_H6[];
   ArraySetAsSeries(LOWEST_Data_H6,true);
   CopyLow(_Symbol,PERIOD_H6,0,4,LOWEST_Data_H6);
   double   LOW_Pure_H6    = (NormalizeDouble((PRICE_Information[ArrayMinimum(LOWEST_Data_H6,0,4)].low),Digits()))/_Point;
   double   PROFIT_H6   =  NormalizeDouble(((HIGH_Pure_H6-LOW_Pure_H6-SPREAD_Pure)/SPREAD_Pure),2);
   double   GROWTH_H6   =  NormalizeDouble(((ATR_Pure_H6/SPREAD_Pure)-1),2);
   
   
   SendMail
   (_Symbol,
   "Spread = "    + SPREAD_Pure  +"\n"+
   "Minute 1   : "   + "Profit = "+PROFIT_M1+", "+"Growth = "+GROWTH_M3+", "+"ATR = "+ATR_Pure_M1+", "+"High = "+HIGH_Pure_M1+", "+"Low = "+LOW_Pure_M1 +"\n"+
   "Minute 3   : "   + "Profit = "+PROFIT_M3+", "+"Growth = "+GROWTH_M3+", "+"ATR = "+ATR_Pure_M3+", "+"High = "+HIGH_Pure_M3+", "+"Low = "+LOW_Pure_M3 +"\n"+
   "Minute 5   : "   + "Profit = "+PROFIT_M5+", "+"Growth = "+GROWTH_M5+", "+"ATR = "+ATR_Pure_M5+", "+"High = "+HIGH_Pure_M5+", "+"Low = "+LOW_Pure_M5 +"\n"+
   "Minute 10  : "   + "Profit = "+PROFIT_M10+", "+"Growth = "+GROWTH_M10+", "+"ATR = "+ATR_Pure_M10+", "+"High = "+HIGH_Pure_M10+", "+"Low = "+LOW_Pure_M10 +"\n"+
   "Minute 15  : "   + "Profit = "+PROFIT_M15+", "+"Growth = "+GROWTH_M15+", "+"ATR = "+ATR_Pure_M15+", "+"High = "+HIGH_Pure_M15+", "+"Low = "+LOW_Pure_M15 +"\n"+
   "Minute 30  : "   + "Profit = "+PROFIT_M30+", "+"Growth = "+GROWTH_M30+", "+"ATR = "+ATR_Pure_M30+", "+"High = "+HIGH_Pure_M30+", "+"Low = "+LOW_Pure_M30 +"\n"+
   "Hour 1     : "   + "Profit = "+PROFIT_H1+", "+"Growth = "+GROWTH_H1+", "+"ATR = "+ATR_Pure_H1+", "+"High = "+HIGH_Pure_H1+", "+"Low = "+LOW_Pure_H1 +"\n"+
   "Hour 3     : "   + "Profit = "+PROFIT_H3+", "+"Growth = "+GROWTH_H3+", "+"ATR = "+ATR_Pure_H3+", "+"High = "+HIGH_Pure_H3+", "+"Low = "+LOW_Pure_H3 +"\n"+
   "Hour 6     : "   + "Profit = "+PROFIT_H6+", "+"Growth = "+GROWTH_H6+", "+"ATR = "+ATR_Pure_H6+", "+"High = "+HIGH_Pure_H6+", "+"Low = "+LOW_Pure_H6 +"\n"
   );
  }
 
 
  • Post #53,199
  • Quote
  • Jul 19, 2022 12:01pm Jul 19, 2022 12:01pm
  •  linker26
  • | Joined Aug 2021 | Status: Member | 100 Posts
Quoting eess
Disliked
{quote} If you don't mind, I wrote this which handles only rectangles. I don't really have time or interest to develop this tool any further since I myself only use trendlines and rectangles most of the time, besides, the default MT4 magnet sensitivity has taken care of some other objects like trendline etc, so by default, trendlines has the magnet activated as what Jeanlouie has explained to you, and I don't think we can write a custom program to remove a feature which MT4 by default has, which means custom program will not be able to remove the...
Ignored
how did you manage to make the lower left anchor point magnetize?
 
 
  • Post #53,200
  • Quote
  • Jul 19, 2022 12:16pm Jul 19, 2022 12:16pm
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 1,493 Posts
Quoting Mahir
Disliked
...new problem...
Ignored
Should probably just use an indicator instead of a script, I guess for this its up to you, but you'll need to start checking return values and checking if data you want is even ready yet, and waiting until it is ready.

In mql5 when you use an indicator function like ima(), just use it once, it gives you a handle to the indicator data that it sets up, and you can check if the handle is valid to use. When getting info from an indicator via copybuffer, you reference the handle number, and dont re-call the whole indicator function again.

Also the indicator functions take time to collect price info, then calculate the indicator over the entire history. The values are sometimes not ready by the time you want to get something, espcially if it's a mtf call. You would check this via barscalculated() to see if the indicator data has values ready.

You don't have to keep using normalizedouble everywhere.

Look at other mql5 source codes to see how indicators are setup, or the documentation for any function.
 
1
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 26582659Page 266026612662 2975
    • 1 Page 2660 2975
23 traders viewing now, 5 are members:
Slingshots1
,
Marcus05
,
Invisible
,
icobito
,
Fiox89
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023