Converting a script to EA for MT4 and Pinescript Strategy with backtest

Other 전문가 스크립트

작업 종료됨

실행 시간 1 일

명시

Please i need someone to convert the below indicator script to an EA for MT4 and Pinescript Strategy with backtest.


//@version=4


study("Heikin Ashi Smoothed Buy Sell v4 ", overlay=true)

EMAlength=input(55,"EMA LENGTH?")


src = ohlc4

haOpen = 0.0

haOpen := (src + nz(haOpen[1])) / 2

haC = (ohlc4 + nz(haOpen) + max(high, nz(haOpen)) + min(low, nz(haOpen))) / 4

EMA1 = ema(haC, EMAlength)

EMA2 = ema(EMA1, EMAlength)

EMA3 = ema(EMA2, EMAlength)

TMA1 = 3 * EMA1 - 3 * EMA2 + EMA3

EMA4 = ema(TMA1, EMAlength)

EMA5 = ema(EMA4, EMAlength)

EMA6 = ema(EMA5, EMAlength)

TMA2 = 3 * EMA4 - 3 * EMA5 + EMA6

IPEK = TMA1 - TMA2

YASIN = TMA1 + IPEK

EMA7 = ema(hlc3, EMAlength)

EMA8 = ema(EMA7, EMAlength)

EMA9 = ema(EMA8, EMAlength)

TMA3 = 3 * EMA7 - 3 * EMA8 + EMA9

EMA10 = ema(TMA3, EMAlength)

EMA11 = ema(EMA10, EMAlength)

EMA12 = ema(EMA11, EMAlength)

TMA4 = 3 * EMA10 - 3 * EMA11 + EMA12

IPEK1 = TMA3 - TMA4

YASIN1 = TMA3 + IPEK1


mavi = YASIN1

kirmizi = YASIN



longCond=mavi>kirmizi and mavi[1]<=kirmizi[1]

shortCond=mavi<kirmizi and mavi[1]>=kirmizi[1]


trendState = kirmizi < mavi ? true : kirmizi > mavi ? false : na

closePlot = plot(kirmizi, title="Close Line", color=#009900, linewidth=10, style=plot.style_line, transp=90)

openPlot = plot(mavi, title="Open Line", color=#CC0000, linewidth=10, style=plot.style_line, transp=90)

closePlotU = plot(trendState ? kirmizi : na, transp=100, editable=false)

openPlotU = plot(trendState ? mavi : na, transp=100, editable=false)

closePlotD = plot(trendState ? na : kirmizi, transp=100, editable=false)

openPlotD = plot(trendState ? na : mavi, transp=100, editable=false)

fill(openPlotU, closePlotU, title="Up Trend Fill", color=#009900, transp=1)

fill(openPlotD, closePlotD, title="Down Trend Fill", color=#CC0000, transp=1)






last_signal = 0

long_final = longCond and (nz(last_signal[1]) == 0 or nz(last_signal[1]) == -1)

short_final = shortCond and (nz(last_signal[1]) == 0 or nz(last_signal[1]) == 1)


alertcondition(long_final, title="buy alarm", message="buy signal!!!")

alertcondition(short_final, title="sell alarm", message="sell signal!!!")

last_signal := long_final ? 1 : short_final ? -1 : last_signal[1]


plotshape(long_final, style=shape.labelup, location=location.belowbar, color=color.blue, size=size.tiny, title="buy label", text="BUY", textcolor=color.white)

plotshape(short_final, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.tiny, title="sell label", text="SELL", textcolor=color.white)


응답함

1
개발자 1
등급
5
(40)
프로젝트
59
32%
중재
3
0% / 67%
기한 초과
5
8%
작업중
2
개발자 2
등급
4.98
(61)
프로젝트
68
32%
중재
4
25% / 50%
기한 초과
12
18%
작업중
3
개발자 3
등급
5
(24)
프로젝트
24
21%
중재
0
기한 초과
0
바쁜
4
개발자 4
등급
4.98
(194)
프로젝트
266
57%
중재
5
40% / 0%
기한 초과
22
8%
작업중
비슷한 주문
Hello Programmers I need Binance bot auto traders with API. Auto trader working on user login account can settings and selecting coins. working martingale volume and hold profit/loss with market price percentage to grid. using 2/3 strategies working mobile and pc. working like royalty q system. 1. User account protection 2. user subscription 3. user login interface and settings customize and add binance api 4
Hello. I want a script that allows me to retrieve messages posted in a Channel Telegram. I'm not the Channel admin, I'm just a member. I just want to be able to retrieve all the messages posted in this group in a txt file and update the file with each new message received Thank you
Hello, i want those new pending orders to be existed, A buy limit stop ( if price go down, when hit the buy limit stop order the buy stop above it will be activated ) and the same with sell limit stop, look at the picture to understand
I want you to code the strategy i sent in tradingview and convert it to a auto strategy in NINJATRADER 8. I want it to take trades on the same alerts as in the tradingview script
Hiren kathiriya143 30 - 50 USD
I have an Strategy to work for Indian Share Market Trading. I want that strategy to DEVELOP for TRADINGVIEW terminal. If BUY or SELL scenario Fullfilled means then Alert has to come for that ENTRY
Hi, I would like to convert a Strong Weak calculation that is currently done in excel into a MT4 indicator. I will provide the exact formula and preferred layout but the price just uses 2 MAs with JPY as the base reference currency. Thanks a lot. Russell
Hello everyone. I need help to develop an expert advisor . The methodology of this eta is the following order there will be two moving averages and one rsi . If there is a cross and rsi level is below the certain level there will be an opening position. Now if this opened trades move the fifty percent of profit target then at that price there will be another open position and the previous position will come to break
**File attachments to follow** --File uploaded (27/09/2021)-- -- Final revision of code to be uploaded (08/10/2021)-- ( 22/10/2021) (1.) I will need MQL4 code converted into MQL5. (2.) I will test the newly converted code works. I am in no hurry to convert things, and I am very specific in what I require I will be proving Developers will lots of information with my requirements. I am a web developer myself, and code
**File attachments to follow** --File uploaded (27/09/2021)-- -- Final revision of code to be uploaded (08/10/2021)-- ( 22/10/2021) (1.) I will need MQL4 code converted into C# for the CTrader platform. (2.) I will test the newly converted code works. I am in no hurry to convert things, and I am very specific in what I require I will be proving Developers will lots of information with my requirements. I am a web
I would like to automate the MT5 trading panel to trade all Futures Instruments on all time frames on the CME. Parameters: Order Type: Exchange Execution, Pending Order Fill Policy: Return, Fill or Kill, Immediate or Cancel Pending Order Type: Buy Limit, Sell Limit, Buy Stop, Sell Stop, Buy Stop Limit, Sell Stop Limit Price:- Place order at a specified time in Hour:Minute:Second at "n" number of ticks above and below

프로젝트 정보

예산
30 - 50 USD
개발자에게
27 - 45 USD