• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 5:43pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 5:43pm
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 26592660Page 266126622663 2975
  • 1 Page 2661 2975
  •  
  • Post #53,201
  • Quote
  • Jul 19, 2022 3:00pm Jul 19, 2022 3:00pm
  •  linker26
  • | Joined Aug 2021 | Status: Member | 100 Posts
Quoting jeanlouie
Disliked
{quote} Right you are, and I already started writing before eess gave the link, so here's mine anyway, it handles more objects that aren't covered by the link. Snap_to_OHLC_rect_hl_arr_txt_lbl - input magnet in pixels - will snap to closest ohlc within magnet - handles rectangles(all points), all arrow types, horizontal lines, texts, labels {file}
Ignored
Dear jeanlouie,
Since you have mentioned the subject, I take this opportunity to ask you a little question.
Is it possible to temporarily disable magnetic sensitivity with a hotkey?
the only way is to go to: Tools-->Options-->Charts--> and set Manegt sensitivity = 0
I tried to code something to disable the Manegt sensitivity, but without success. There is no function that controls this parameter.
My programming knowledge is limited, and I can't think of another way to achieve it.
Do you know any alternative solution?

Greetings and blessings
 
 
  • Post #53,202
  • Quote
  • Jul 19, 2022 3:14pm Jul 19, 2022 3:14pm
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 1,493 Posts
Quoting linker26
Disliked
{quote}...set Manegt sensitivity = 0...There is no function that controls this parameter...
Ignored
As far as I'm aware it is a terminal setting and not open to programmatic control with mql4/5, so either set it to 0 to not use it or something else and just leave it as that.
 
1
  • Post #53,203
  • Quote
  • Jul 19, 2022 3:22pm Jul 19, 2022 3:22pm
  •  linker26
  • | Joined Aug 2021 | Status: Member | 100 Posts
Quoting jeanlouie
Disliked
{quote} As far as I'm aware it is a terminal setting and not open to programmatic control with mql4/5, so either set it to 0 to not use it or something else and just leave it as that.
Ignored
thanks for the clarification,
I thought it was possible by coding something from the mql4/5 language. Now I understand why there is no documentation about this in mql4/5.

thanks for your kind response friend. Greetings and blessings
 
 
  • Post #53,204
  • Quote
  • Jul 19, 2022 4:16pm Jul 19, 2022 4:16pm
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 1,053 Posts
Quoting Hammertop
Disliked
{quote} 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.
Ignored
Based on Button version which seems original, i added two options.
Attached File(s)
File Type: mq4 ATRprojections button.mq4   12 KB | 143 downloads
 
1
  • Post #53,205
  • Quote
  • Jul 19, 2022 6:28pm Jul 19, 2022 6:28pm
  •  pips4life
  • Joined Apr 2007 | Status: Member | 890 Posts | Online Now
Quoting linker26
Disliked
{quote} Dear jeanlouie, Since you have mentioned the subject, I take this opportunity to ask you a little question. Is it possible to temporarily disable magnetic sensitivity with a hotkey? the only way is to go to: Tools-->Options-->Charts--> and set Manegt sensitivity = 0 I tried to code something to disable the Manegt sensitivity, but without success. There is no function that controls this parameter. My programming knowledge is limited, and I can't think of another way to achieve it. Do you know any alternative solution? Greetings and blessings...
Ignored
I happen to use Logitech programmable keyboard devices, but other keyboards/mice may also offer similar programmability; plus, there are some software "hotkey" tools I've heard of but I've not made any personal use of them myself. (Use Google).

Because I can program a sequence of keystrokes on my devices, then I often create a hotkey that can change MT4 settings which are otherwise not programmatically available in MQL4/MQL5.

Because this method is something of a "hack", it doesn't always work. Depending on the starting point when opening a form (which is often random), the series of keystrokes might work, sometimes not. You'll see as you follow the instructions below.

The following sequential keystrokes will *usually* change the magnet sensitivity to 0 (or whatever number you want). You can try them manually right now and prove to yourself if it works or not, and if I've made any mistakes, see if you can find a foolproof sequence of keystrokes. FYI, after you have the sequence, you would then create a "hotkey" (either on hardware or software, external to MT4), but you might need to insert a number of milliseconds between them because sometimes the keystrokes are too fast. (e.g. 50ms between them, maybe more, maybe less; experiment from 0 to 100ms).

 

  1. Make MT4/MT5 active.
  2. Click on the Tools menu to display it.
  3. Notice that the "Options" choice already has a bindkey choice, Ctrl+O, so we'll use that.

    *IF* there is no built-in bindkey choice, then our alternative would be to use a series of keystrokes that does exactly the same thing.

    Start by hitting the Alt key once. Notice that the MT4 menus now have a single letter underlined. If you press the letter "t", it opens up the Tools menu. Notice the underlined letters within the Tools menu. Press the letter "o" and it opens up the Options form.
  4. In the Options menu, navigate to the Objects tab, and change the Magnet Sensitivity to 11.

    Close the Options menu.

    (This has established an initial condition for which the macro should work; most other initial conditions will work as well, except as noted below).
  5. Let's start with defining the series of keystrokes.

    Here's where it gets a little tricky in that you normally do not know where is the point of focus when you first open this Options form. ANY tab might be selected (generally the last one that you used). And it might be that the focus is on some particular entry within the tab form that opens. (Such as at the Magnet Sensitivity entry if you just changed it.

    What you need to do is to establish an exact known point of focus on the form from which you can then move forward with an exact sequence of keystrokes that makes the specific change that you want. It can be behave differently for the various menus/forms.

    What I observe is that no matter how the Options form opens up, the following keystrokes *should* get the focus to the same starting point, at the very first "Server" tab.

    Ctrl+o (The standard MT4 bindkey to open the Options form; Else use: Alt t o )
    Ctrl+Shift+Tab (AFAIK, no matter where is the opening focus for the Options form, this moves the focus to EITHER the top of the previous tab, whatever that is, or to the top-most field *within* the previous tab)
    Ctrl+Tab (This moves to the top of the opening Tab. SO LONG AS THIS IS NOT THE "Trade" TAB, the rest of the macro will work. I have no solution to guarantee which Tab one is in, and if the Trade tab is current, and if the "Symbol by default" radio button is the current focus, then the next "Up-arrow" key will NOT work as desired! Hence, this macro is only partially successful, but the good news is you probably don't often change the "Trade" tab; if you do, then first change to any other tab before you click on "Ok").

    Up-arrow-key (once. If the focus was at the 1st field within whatever tab form (other than the "Trade" tab!), this moves focus up to the tab itself; if already focused at the tab, it does nothing)

    Left-arrow-key
    ... (Hit this 12 times! The most that is likely needed is 10 (because there are 11 tabs), but hitting it twice extra doesn't hurt and would be helpful in case more tabs are added later).

    Now that focus is very likely at the 1st "Server" tab - at the tab itself and not within the tab form -- let's move forward two tabs:
    Ctrl+Tab
    Ctrl+Tab
    (As far as I know, we could have used two right-arrow keys instead, which does the same thing)

    Now that the 3rd "Options" Tab is now the focus, let's move down 4 fields to the "Magnet Sensitivity" field using just "Tab":
    Tab
    Tab
    Tab
    Tab

    Now that it has selected the current entry and is waiting to overwrite a new number, enter whatever value is desired, or 0 to turn it off:
    0

    To close the form:
    Return (or Enter)

    These are the keystrokes to turn off "Magnet Sensitivity". If you use a programmable keyboard or hotkey software, then you can define a couple of macros and assign them to two keys: one that turns it off (value 0), another that turns it back on (value 10 or whatever you want).

    It is possible to define an MT4 script that issues keystrokes, but as I have a completely functional solution for myself, I have never explored this approach (and have zero interest to do so; maybe another coder will, and if successful, then a standard MT4 hotkey can be assigned to run the script(s)). P.S. A single script can detect when a key like "Shift" is pressed or not, and could therefore choose to do whatever is desired; hence there is no need to write two scripts and use two MT4 hotkeys, one to set magnet to 0, another to 10. A single script and hotkey can do both.
  6. Tip: When creating such macros to change whatever field in whatever form, it usually starts with "Alt", or some existing MT4 bindkey. Next, to navigate the form, the keys to play with are combinations of: Tab, Shift, Control, up/down/right/left arrows, Backspace, Delete, and Spacebar. I'm not sure if there are any others to aid navigation or to change values. FYI: To toggle a checkbox field, with the checkbox field selected as the current focus, a "Spacebar" toggles the value.


The above demonstrates the series of keystrokes to change the Magnet Sensitivity to 0! It's up to you to figure out what hardware or software you want to use to define a macro key you can use to make it one-or-two-button hotkey accessible.

Good luck.

 
1
  • Post #53,206
  • Quote
  • Jul 20, 2022 6:50am Jul 20, 2022 6:50am
  •  linker26
  • | Joined Aug 2021 | Status: Member | 100 Posts
Quoting pips4life
Disliked
{quote} I happen to use Logitech programmable keyboard devices, but other keyboards/mice may also offer similar programmability; plus, there are some software "hotkey" tools I've heard of but I've not made any personal use of them myself. (Use Google). Because I can program a sequence of keystrokes on my devices, then I often create a hotkey that can change MT4 settings which are otherwise not programmatically available in MQL4/MQL5. Because this method is something of a "hack", it doesn't always work. Depending on the starting point when opening...
Ignored
Thanks bro, it's a bit complex to do, but I'll try.
You have given me a good idea towards the possible solution.
 
 
  • Post #53,207
  • Quote
  • Jul 20, 2022 10:53am Jul 20, 2022 10:53am
  •  llJustll
  • | Joined Sep 2018 | Status: Member | 13 Posts
Can someone please add an alert when the attached indicator change colors on the upper and lower band. Thanks in advance if any one helped!
Attached Image (click to enlarge)
Click to Enlarge

Name: color.JPG
Size: 149 KB
Attached File(s)
File Type: mq4 STC_COLOR.mq4   5 KB | 118 downloads
 
 
  • Post #53,208
  • Quote
  • Jul 20, 2022 11:32am Jul 20, 2022 11:32am
  •  Hammertop
  • | Joined May 2014 | Status: Member | 568 Posts
Quoting BlueRain
Disliked
{quote} Based on Button version which seems original, i added two options. {file}
Ignored
That's amazing, BlueRain. Just what I was looking for. Thank you so much
 
 
  • Post #53,209
  • Quote
  • Jul 20, 2022 11:45am Jul 20, 2022 11:45am
  •  Mahir
  • | Joined Jul 2022 | Status: Member | 12 Posts
HI every one I am good at solving problems with due time, but time is something I lack right now so can anyone help me by making an indicator having the code below,
or give me a custom indicator that does anything but it should have iATR function in it of the current candle.
My only request is please give it in mq type and not ex type.
Thank You
Inserted Code
   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[];
   ArraySetAsSeries(ATR_Data,true);
   CopyBuffer(iATR(_Symbol,PERIOD_CURRENT,27), 0, 0, 100, ATR_Data);
   double   ATR_Pure = (NormalizeDouble(ATR_Data[0],Digits()))/_Point;
   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)/SPREAD_Pure),2);
   double   GROWTH   =  NormalizeDouble(((ATR_Pure/SPREAD_Pure)-1),2);
 
 
  • Post #53,210
  • Quote
  • Edited 1:34pm Jul 20, 2022 11:53am | Edited 1:34pm
  •  Paymanz
  • | Joined Dec 2019 | Status: Member | 188 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
oh this is awesome! exactly what i needed, thanks!(edit: the only thing is that it only snaps to H/L and not to open or close)
 
 
  • Post #53,211
  • Quote
  • Jul 20, 2022 1:10pm Jul 20, 2022 1:10pm
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 1,053 Posts
Quoting llJustll
Disliked
Can someone please add an alert when the attached indicator change colors on the upper and lower band. Thanks in advance if any one helped! {image} {file}
Ignored
Try this one. Added very standard handling.
Not Tested so please test and let me know if any issue.
Attached File(s)
File Type: mq4 STC_COLOR.mq4   7 KB | 143 downloads
 
 
  • Post #53,212
  • Quote
  • Jul 20, 2022 1:20pm Jul 20, 2022 1:20pm
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 1,053 Posts
Quoting Mahir
Disliked
HI every one I am good at solving problems with due time, but time is something I lack right now so can anyone help me by making an indicator having the code below, or give me a custom indicator that does anything but it should have iATR function in it of the current candle. My only request is please give it in mq type and not ex type. Thank You 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);...
Ignored
Why don't you use sample code I provided?
CopyBuffer - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

double ATR[]; //buffer to hold ATR values
ArrayResize(ATR,50); //Buffer to have 50 values
atr_handle = iATR(_Symbol,_Period,15); //create handle to iATR indicator
ArraySetAsSeries(ATR,true); //and make it ordered
CopyBuffer(atr_handle,0,0,40,ATR); //now, copy iATR indicator values to buffer
adr= ATR[0]; //access first one which is candle 0


int CopyBuffer(
int indicator_handle, // indicator handle
int buffer_num, // indicator buffer number
int start_pos, // start position
int count, // amount to copy
double buffer[] // target array to copy
);

this CopyBuffer will do following
CopyBuffer(atr_handle,0,0,40,ATR);

it will copy data from indicator 0 to Buffer 0, and total of 40.
Link to CopyBuffer has exact example and Picture of how this CopyBuffer will do.
 
 
  • Post #53,213
  • Quote
  • Jul 20, 2022 2:36pm Jul 20, 2022 2:36pm
  •  martetango
  • | Joined Oct 2020 | Status: Member | 24 Posts
Hello Traders.
Is there an indicator that draws a line from open position until itīs closed?
I'm looking for this indicator so I have a better understanding of my way of trading.
 
 
  • Post #53,214
  • Quote
  • Edited 3:46pm Jul 20, 2022 2:43pm | Edited 3:46pm
  •  Mahir
  • | Joined Jul 2022 | Status: Member | 12 Posts
Quoting BlueRain
Disliked
{quote}
Why don't you use sample code I provided? CopyBuffer - Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5......
Ignored
I need the whole thing in a loop for every new candle.
the example that you have provided is not in a loop or for-loop.
i am working with the highest and the lowest price for a certain number of candles along with spread and atr of those candles.
 
 
  • Post #53,215
  • Quote
  • Jul 20, 2022 7:45pm Jul 20, 2022 7:45pm
  •  Sojourn
  • | Joined Aug 2021 | Status: Member | 54 Posts
Whats up guys, im just looking for a simple trade manager that will allow me to quickly close 50% of my position and move to BE, literally just 2 buttons close half and move to BE, it has to work trades opened with pending orders also. i know this seems like an easy request but i have searched for several hours now and i cannot seem to find something that does this without a bunch of extra nonsense and trouble, also i am using offline renko charts, some eas just flat out dont work on them. Any help would be greatly appreciated, thank you very much
 
 
  • Post #53,216
  • Quote
  • Jul 20, 2022 8:26pm Jul 20, 2022 8:26pm
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 1,493 Posts
Quoting martetango
Disliked
...indicator that draws a line from open position until itīs closed?...better understanding of my way of trading.
Ignored
Look for an order plotter indicator, there's several so just keep looking untill you find one that suits you.
 
1
  • Post #53,217
  • Quote
  • Jul 20, 2022 8:56pm Jul 20, 2022 8:56pm
  •  dmitry_dos
  • | Joined Sep 2008 | Status: Member | 95 Posts
Good day ladies and gents.
I'm really hoping someone might be able to make this COG indicator work. It was working until the MT4 platforms updated. I've tried it on both my old and brand new laptops.
Thank you in advance.
Dmitry
Attached File(s)
File Type: mq4 #MBFX System_Alerts.mq4   8 KB | 115 downloads
 
 
  • Post #53,218
  • Quote
  • Jul 20, 2022 10:32pm Jul 20, 2022 10:32pm
  •  BlueRain
  • Joined Sep 2019 | Status: Member | 1,053 Posts
Quoting dmitry_dos
Disliked
Good day ladies and gents. I'm really hoping someone might be able to make this COG indicator work. It was working until the MT4 platforms updated. I've tried it on both my old and brand new laptops. Thank you in advance. Dmitry {file}
Ignored
Again, this is decompiled indicator and I can't help on this.
Please bring original code if you are looking for help.
 
 
  • Post #53,219
  • Quote
  • Jul 20, 2022 11:04pm Jul 20, 2022 11:04pm
  •  eess
  • Joined Feb 2021 | Status: Member | 476 Posts
Quoting Paymanz
Disliked
{quote} oh this is awesome! exactly what i needed, thanks!(edit: the only thing is that it only snaps to H/L and not to open or close)
Ignored

Not true, it does snap on to open/close as well, play around with it somemore, release your mouse grip nearer to the candle body or inside the candle body if you want it to snap to open/close.
 
1
  • Post #53,220
  • Quote
  • Jul 21, 2022 12:26am Jul 21, 2022 12:26am
  •  liquifire
  • | Joined Jun 2022 | Status: Junior Member | 1 Post
hi
i have a simple vol. bars indicator with a MA on it , since my screen is not big i cant see exactly when vol. bars cross up MA line , could you please add a silent little screen text or light notifier (with options to set which side of screen ,EX: top left top right , bottom left right with XY ) also a default mt4 ALERT enable/disable option , so i will be alerted when each vol. bar crosses up the MA line ( no matter its a red or green vol. bar)
thanks
Attached File(s)
File Type: ex4 UPDNvolumeMA.ex4   15 KB | 93 downloads
 
 
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 26592660Page 266126622663 2975
    • 1 Page 2661 2975
25 traders viewing now, 6 are members:
Invisible
,
privatefr
,
dexterous
,
Marcus05
,
Fiox89
,
Pepito
  • 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