Convert Pinescript indicator into MQL5

MQL5 지표 다른

작업 종료됨

실행 시간 3 일
피고용인의 피드백
5-stars customer. It was a pleasure to work with him ;)

명시

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!')


응답함

1
개발자 1
등급
(38)
프로젝트
50
10%
중재
1
0% / 0%
기한 초과
8
16%
무료
2
개발자 2
등급
(94)
프로젝트
190
66%
중재
8
25% / 50%
기한 초과
2
1%
무료
3
개발자 3
등급
(27)
프로젝트
43
7%
중재
18
6% / 78%
기한 초과
26
60%
무료
4
개발자 4
등급
(317)
프로젝트
355
72%
중재
7
43% / 29%
기한 초과
20
6%
작업중
5
개발자 5
등급
(132)
프로젝트
178
39%
중재
4
25% / 50%
기한 초과
14
8%
무료
6
개발자 6
등급
(2)
프로젝트
4
0%
중재
0
기한 초과
0
무료
7
개발자 7
등급
프로젝트
0
0%
중재
1
0% / 100%
기한 초과
0
무료
비슷한 주문
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

프로젝트 정보

예산
50+ USD