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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Coding robots and indicators in C# for no charge (cTrader API) 182 replies

Oanda MT4 - Indicators and EAs not showing 1 reply

EAs and indicators relating to moutaki... 22 replies

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

Need help to code EAs for MT4 and MT5 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

I will code your EAs and Indicators for no charge

  • Last Post
  •  
  • 1 22552256Page 225722582259 2262
  • 1 Page 2257 2262
  •  
  • Post #45,121
  • Quote
  • Apr 7, 2021 6:42pm Apr 7, 2021 6:42pm
  •  John4y
  • | New Member | Status: Member | 40 Posts
Question to the Master Coders:

Is it possible to open & close an indicator subwindow from a On/Off Button on the main chart ?

If yes, which instruction code must be included in the Button ?
  • Post #45,122
  • Quote
  • Apr 7, 2021 11:13pm Apr 7, 2021 11:13pm
  •  prince333
  • | Joined Dec 2018 | Status: Member | 6 Posts
Hello friend.. I have a pine script code.. 3 ema crossover k want convert this strategy into mt4 language. I want test larger data that's reason plz help me out...

//@version=3
strategy("3 MAcross_alert", shorttitle="MAcross_Alert", overlay=true)
EMA_Fast =input(4, minval=1) // To input period for 1st sma, default period set as 10
EMA_Medium =input(9, minval=1)
EMA_Slow =input(18, minval=1)
s1=ema(close,EMA_Fast) // sma values stored in s1 and s2 variables
s2=ema(close,EMA_Medium)
s3=ema(close,EMA_Slow)
plot(s1, color=red,linewidth=2) // Plots the MA
plot(s2, color=yellow,linewidth=2)
plot(s3, color=green,linewidth=2)
long= crossover(s1,s3) and s1 > s2// Define our buy/sell conditions, using pine inbuilt functions.
short= crossunder(s1,s3) and s1 < s2
exitLong = crossunder(s1,s2)
exitShort = crossover(s1,s2)
strategy.entry("long",strategy.long,when=long) // Buys when buy condition met
strategy.close("long",when=exitLong)
strategy.entry("short",strategy.short, when = short ) // Closes position when sell condition met
strategy.close("short",when=exitShort)
  • Post #45,123
  • Quote
  • Apr 8, 2021 12:02am Apr 8, 2021 12:02am
  •  rosypips
  • | Joined Jun 2020 | Status: Junior Member | 6 Posts
Please can you help me code a simple risk to reward tool, like the one tradingview uses.
Attached Image (click to enlarge)
Click to Enlarge

Name: 0ea9acfa5cafdc3d1d7cc31e06351723.png
Size: 6 KB
  • Post #45,124
  • Quote
  • Apr 8, 2021 2:56am Apr 8, 2021 2:56am
  •  Alesiosc
  • | Joined Feb 2019 | Status: Member | 291 Posts
Sorry.....there you go
Attached Files
File Type: ex4 RiskReward_Ratio_v0_1 (1)_2.ex4   22 KB | 32 downloads
File Type: mq4 RiskReward_Ratio_v0_1 (1)_2.mq4   13 KB | 58 downloads
If at first you don't succeed, try, try again.
  • Post #45,125
  • Quote
  • Apr 8, 2021 3:00am Apr 8, 2021 3:00am
  •  kvak
  • | Joined Feb 2018 | Status: Member | 66 Posts
Quoting rosypips
Disliked
Please can you help me code a simple risk to reward tool, like the one tradingview uses. {image}
Ignored
Hi.
I found this, but I don't use it.....
Attached Image (click to enlarge)
Click to Enlarge

Name: 2021-04-08_085936.png
Size: 19 KB
Attached Files
File Type: ex4 RiskReward_Ratio_TradingView_like_v0.1j (1).ex4   25 KB | 28 downloads
File Type: mq4 RiskReward_Ratio_TradingView_like_v0.1j (1).mq4   20 KB | 59 downloads
1
  • Post #45,126
  • Quote
  • Apr 8, 2021 5:06am Apr 8, 2021 5:06am
  •  mosiskv
  • Joined Mar 2013 | Status: Member | 236 Posts
Quoting John4y
Disliked
Question to the Master Coders: Is it possible to open & close an indicator subwindow from a On/Off Button on the main chart ? If yes, which instruction code must be included in the Button ?
Ignored
Hi

Try this one here.

Cheers / Mos
Don't limit yourself!!
3
  • Post #45,127
  • Quote
  • Apr 8, 2021 7:06am Apr 8, 2021 7:06am
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 945 Posts
Quoting vinscal
Disliked
{quote} Hi Jeanlouie can you please check on this request .. indicator to show open=high list
Ignored
I wont be taking it up, but you may be able to find it or something like it or ask elsewhere too
  • Post #45,128
  • Quote
  • Apr 8, 2021 7:12am Apr 8, 2021 7:12am
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 945 Posts
Quoting John4y
Disliked
... Is it possible to open & close an indicator subwindow from a On/Off Button on the main chart ? If yes, which instruction code must be included in the Button ?
Ignored
No it's not possible, there is no function in mql/5 to open n close a subwindow. Via chart functions in the documentation, you can use indicator-delete-name-total and windowstotal to find and remove indicators, but once removed there is no way within mql4 to add the indicator back. The link mosiskv provided shrinks the height of a single target subwindow, but it's frame is still there and takes about 1cm of screen height, not removing it.
  • Post #45,129
  • Quote
  • Apr 8, 2021 7:20am Apr 8, 2021 7:20am
  •  prince333
  • | Joined Dec 2018 | Status: Member | 6 Posts
Quoting prince333
Disliked
Hello friend.. I have a pine script code.. 3 ema crossover k want convert this strategy into mt4 language. I want test larger data that's reason plz help me out... //@version=3 strategy("3 MAcross_alert", shorttitle="MAcross_Alert", overlay=true) EMA_Fast =input(4, minval=1) // To input period for 1st sma, default period set as 10 EMA_Medium =input(9, minval=1) EMA_Slow =input(18, minval=1) s1=ema(close,EMA_Fast) // sma values stored in s1 and s2 variables s2=ema(close,EMA_Medium) s3=ema(close,EMA_Slow) plot(s1, color=red,linewidth=2) // Plots the...
Ignored

Please help me
  • Post #45,130
  • Quote
  • Apr 8, 2021 7:48am Apr 8, 2021 7:48am
  •  PaulMF
  • | Joined Apr 2020 | Status: Member | 253 Posts
Quoting John4y
Disliked
Question to the Master Coders: Is it possible to open & close an indicator subwindow from a On/Off Button on the main chart ? If yes, which instruction code must be included in the Button ?
Ignored

Quoting jeanlouie
Disliked
{quote} No it's not possible, there is no function in mql/5 to open n close a subwindow. Via chart functions in the documentation, you can use indicator-delete-name-total and windowstotal to find and remove indicators, but once removed there is no way within mql4 to add the indicator back. The link mosiskv provided shrinks the height of a single target subwindow, but it's frame is still there and takes about 1cm of screen height, not removing it.
Ignored
Yes, it is easily done in MQL5:
ChartIndicatorAdd
ChartIndicatorDelete

It is also possible in MT4 with a different approach.

Anyway, the mosiskv alternative is good.
  • Post #45,131
  • Quote
  • Apr 8, 2021 8:06am Apr 8, 2021 8:06am
  •  classy
  • Joined Jun 2012 | Status: Trader , Analyst and Mentor | 4,222 Posts
HI FOREXfactry mates do you know or try support resistance based on doji /indecesion candle (may 50% candle and inside bar will effective ,i have tested manually few it also working fine) must consider impulse move up /down than draw horizontal line /zone potential buy sell decision key zone. i am attaching image and video if any master coder wish code than it will be great tool for any trader. thanks in advance.

Inserted Video
Attached Images (click to enlarge)
Click to Enlarge

Name: RES 1.png
Size: 220 KB Click to Enlarge

Name: RES 2.png
Size: 242 KB Click to Enlarge

Name: SUP RES BASED ON DOJI CANDLE 1.png
Size: 236 KB Click to Enlarge

Name: SUP RES BASED ON DOJI CANDLE 2.png
Size: 241 KB
Click to Enlarge

Name: SUP RES BASED ON DOJI CANDLE 3.png
Size: 232 KB Click to Enlarge

Name: SUPPORT 1.png
Size: 196 KB
Say something meaningful or Silence!!
  • Post #45,132
  • Quote
  • Apr 8, 2021 9:11am Apr 8, 2021 9:11am
  •  John4y
  • | New Member | Status: Member | 40 Posts
Quoting mosiskv
Disliked
{quote} Hi Try this one here. Cheers / Mos
Ignored
Hi Mos,

Much thanks, not exactly what I was looking for, but is doing the thing!
By setting the "newState" value to 5, the subwindow further schrinks to the minimum.

I keep looking for an open/close solution as "PaulMF" indicated for MT5.
In MT4 i managed to open and delete the subwindow, but not to re-open from the button.
as "PaulMF" indicated, there's mayby a way around.
All hints are welcome
1
  • Post #45,133
  • Quote
  • Apr 8, 2021 9:21am Apr 8, 2021 9:21am
  •  John4y
  • | New Member | Status: Member | 40 Posts
Quoting PaulMF
Disliked
{quote} {quote} Yes, it is easily done in MQL5: ChartIndicatorAdd ChartIndicatorDelete It is also possible in MT4 with a different approach. Anyway, the mosiskv alternative is good.
Ignored

Many thanks paul,

Indeed Mos alternative is a practical solution and with the "newState" values to 5, subwindow is almost gone.
But i keep looking for a open/close subwindow mode, as the only thing missing is a re-opening (recall from the button) of the indicator.
So far i managed to open and delete the subwindow, the only thing missing is a recall of the indicator from On/Off button
  • Post #45,134
  • Quote
  • Apr 8, 2021 9:56am Apr 8, 2021 9:56am
  •  tintep
  • | Joined Nov 2019 | Status: Junior Member | 5 Posts
Quoting John4y
Disliked
Can/will some coder add an On/Off button to this indicator ? {file}
Ignored
Attached File
File Type: ex4 HalfTrend MTF with channels alerts-BT.ex4   38 KB | 25 downloads
  • Post #45,135
  • Quote
  • Apr 8, 2021 9:59am Apr 8, 2021 9:59am
  •  mntiwana
  • Joined Mar 2013 | Status: Member | 1,754 Posts
Quoting prince333
Disliked
{quote} Please help me
Ignored
Why cant you post a print of that said display,for to better understand
Indicator is just a supportive tool-Use it only if it can benefit you
  • Post #45,136
  • Quote
  • Apr 8, 2021 10:26am Apr 8, 2021 10:26am
  •  klm1011
  • Joined Feb 2020 | Status: Member | 1,607 Posts
..... hi all expert coders .......... can anyone help out with a simple EA ............ or does an EA already exists which is universal ... in a sense that if attached to a chart can use arrows off an indicator to open and close trades ................... thanks a million.................
  • Post #45,137
  • Quote
  • Apr 8, 2021 11:11am Apr 8, 2021 11:11am
  •  John4y
  • | New Member | Status: Member | 40 Posts
Quoting tintep
Disliked
{quote} {file}
Ignored
Thanks tintep,

Would it be possible to have the mq4 file as i have to adapt to my settings ?
  • Post #45,138
  • Quote
  • Apr 8, 2021 11:38am Apr 8, 2021 11:38am
  •  John4y
  • | New Member | Status: Member | 40 Posts
Quoting prince333
Disliked
{Hello friend.. I have a pine script code.. 3 ema crossover k want convert this strategy into mt4 language. I want test larger data that's reason plz help me out... //@version=3 strategy("3 MAcross_alert", shorttitle="MAcross_Alert", overlay=true) EMA_Fast =input(4, minval=1) // To input period for 1st sma, default period set as 10 EMA_Medium =input(9, minval=1) EMA_Slow =input(18, minval=1) s1=ema(close,EMA_Fast) // sma values stored in s1 and s2 variables s2=ema(close,EMA_Medium) s3=ema(close,EMA_Slow) plot(s1, color=red,linewidth=2) // Plots...
Ignored

Try this one
Attached File
File Type: mq4 3 EMA Crossover.mq4   9 KB | 25 downloads
  • Post #45,139
  • Quote
  • Apr 8, 2021 11:51am Apr 8, 2021 11:51am
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 945 Posts
Quoting PaulMF
Disliked
{quote} {quote} Yes, it is easily done in MQL5: ChartIndicatorAdd ChartIndicatorDelete It is also possible in MT4 with a different approach. Anyway, the mosiskv alternative is good.
Ignored
Alright then, whilst being limited to mql4/5, I'd like to see how you'd do this:

For mql5, chart property windows_total returns say 5, user wants the ability to close subwindow 3, not minimize but remove completely, and it has multiple indicators, and re-add the subwindow, how would you do this without touching the other subwindows or having to re-input unique indicator settings in itself or other subwindows?

For mql4, user wants to close subwindows, not minimize but remove completely, you can remove indicators, but how would you add an indicator back?
1
  • Post #45,140
  • Quote
  • Apr 8, 2021 12:31pm Apr 8, 2021 12:31pm
  •  jeanlouie
  • Joined Dec 2010 | Status: Member | 945 Posts
Quoting John4y
Disliked
{quote} ... subwindow is almost gone. But ...only thing missing is a re-opening (recall from the button) of the indicator...
Ignored
Unless I'm proven wrong, it can't be done in mql4, you have to import additional windows functions to tell the terminal what to do.

Even with the below gif, you still won't be able to arrange the subwindows, ie if youre removing then re-adding a middle subwindow, you'd have to close all below it then re-open all of them in order, and when the indicators are loaded back you'd still have to click ok for each, and each will load with default settings unless changed.

Btw that indicator you're using is probably the best you'd do, just minimizing subwindows, not removing them. However that indicator doesn't unlock subwindow heights when you remove it.
Attached Image
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 22552256Page 225722582259 2262
    • 1 Page 2257 2262
45 traders viewing now, 6 are members:
lanfrancomar
,
55" Gbpusd
,
Javedsheikh
,
Invisible
,
erex
,
Forex-Forex
  • 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 / ©2021