Convert Pinescript indicator into MQL5

MQL5 Göstergeler Diğer

İş tamamlandı

Tamamlanma süresi: 3 gün
Geliştirici tarafından geri bildirim
5-stars customer. It was a pleasure to work with him ;)

Şartname

I have the following Tradingview pinescript code that i would like to convert to MQ5 indicator 
I would like to keep all the pinescript settings and add the following
1. alert notification and push alert

2. option to change the SHAPE, SIZE and color of the buy sell arrows

                             

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © paka nyeusi
//@version=4

study("KAMA", overlay=true, max_bars_back=5000)

Price = input(hl2, title = "Price")
PeriodF = input(13, title = "PeriodF")
PeriodS = input(55, title = "PeriodS")
EnableSmooth = input(false, title = "EnableSmooth")

AMA(Period, Price) =>
        //Vars: 
        Noise = 0.00
        Signal = 0.00
        Diff = 0.00
        efRatio = 0.00 
        Smooth = 1.00
        Fastest = 0.6667
        Slowest = 0.0645 
        AdaptMA = 0.00
        AMA = 0.00
        
        Diff := abs(Price - nz(Price[1]))
        if bar_index <= Period
                AdaptMA := Price
        if bar_index > Period
                Signal := abs(Price - nz(Price[Period]))
                Noise := sum(Diff, Period)
                efRatio := Signal / Noise
                Smooth := pow(efRatio * (Fastest - Slowest) + Slowest, 2)
                AdaptMA := nz(AdaptMA[1]) + Smooth * (Price - nz(AdaptMA[1]))
        AMA := AdaptMA
        AMA

AMAF(Period, Pcnt, Price) =>
        //Vars: 
        Noise = 0.00 
        Signal = 0.00
        Diff = 0.00
        efRatio = 0.00 
        Smooth = 1.00
        Fastest = 0.6667
        Slowest  = 0.0645
        AdaptMA = 0.00
        AMAFltr = 0.00
        AMAF  = 0.00
        
        Diff := abs(Price - nz(Price[1]))
        if bar_index <= Period
                AdaptMA := Price
        
        if bar_index > Period
                Signal := abs(Price - nz(Price[Period]))
                Noise := sum(Diff, Period)      
                efRatio := Signal / Noise       
                Smooth := pow(efRatio * (Fastest - Slowest) + Slowest, 2)
                AdaptMA := nz(AdaptMA[1]) + Smooth * (Price - nz(AdaptMA[1]))
                AMAFltr := stdev(AdaptMA-nz(AdaptMA[1]), Period) * Pcnt
        AMAF := AMAFltr

//Vars: 
AMAValF = 0.00  
AMAValS = 0.00  

AMAValF := EnableSmooth ? linreg(AMA(PeriodF, Price), PeriodF, 0) :AMA(PeriodF, Price)
AMAValS := EnableSmooth ? linreg(AMA(PeriodS, Price), PeriodS, 0) :AMA(PeriodS, Price)

Plot1 = plot(AMAValF, "AMAValF", color=color.yellow, linewidth =2)
Plot2 = plot(AMAValS, "AMAValS", color=color.fuchsia, linewidth =2)
fill(Plot1, Plot2, color=AMAValF>AMAValS ? color.yellow : color.fuchsia, transp=60)

long = crossover(AMAValF, AMAValS)
short = crossunder(AMAValF, AMAValS)

// Plots labels
l = short ? 
       label.new (bar_index, AMAValF, "SELL", color=color.red, textcolor=color.white, style=label.style_labeldown, yloc=yloc.price, size=size.small) :
       long ?
           label.new (bar_index, AMAValF, "BUY", color=color.green, textcolor=color.white, style=label.style_labelup, yloc=yloc.price, size=size.small) :
           na

//Add Alerts
alertcondition(long, title='Alert on LONG', message='BUY!')
alertcondition(short, title='Alert on SHORT', message='SELL!')


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(38)
Projeler
50
10%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
8
16%
Serbest
2
Geliştirici 2
Derecelendirme
(94)
Projeler
190
66%
Arabuluculuk
8
25% / 50%
Süresi dolmuş
2
1%
Serbest
3
Geliştirici 3
Derecelendirme
(27)
Projeler
43
7%
Arabuluculuk
18
6% / 78%
Süresi dolmuş
26
60%
Serbest
4
Geliştirici 4
Derecelendirme
(317)
Projeler
355
72%
Arabuluculuk
7
43% / 29%
Süresi dolmuş
20
6%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(132)
Projeler
178
39%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
14
8%
Serbest
6
Geliştirici 6
Derecelendirme
(2)
Projeler
4
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
Projeler
0
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
Benzer siparişler
Download the file below to see the job description . If you look for the attached file you'll find all the jobs description . This place has been a great experience to purchase all materials i use and I thinking that someone will write the program for me. Download the file and you will understand the job
I run an institutional-grade, high-frequency XAUUSD (Gold) algorithmic trading system deployed on a Vantage Live Account. The entire trade copier infrastructure is fully tested, automated, and ready for immediate deployment. We are currently looking for a high-caliber performance marketing partner (Media Buyer, Introducing Broker, or Financial Affiliate) to achieve a highly specific target: Acquire our next 10
I am looking for an experienced MQL5 or MQL4 developer with a strong background in low-latency algorithmic trading, market data integration, arbitrage and execution optimization. The project involves developing a high-performance HFT Expert Advisor (EA) for XAUUSD or US30 on IC Markets that is designed for robust execution in both demo and live environments. The EA may use market data feeds (such as lmax,one zero or

Proje bilgisi

Bütçe
50+ USD