Работа завершена
Техническое задание
See the document
Request for translation of code system and indicator from Pine Editor Language (scrip language from Tradingview.com) to MT4.
1. Translation of ANNSYSTEM ( an Expert system by itself)
2. Translation of CM_Ult_MacD
3. Adding money management to item #1
4. Integrating a Robot (ES) using items 1,2,and 3.
These are the 4 required tasks.
The code for each is included and a partial translation to MT4 language that is not currently working but serves as an example.
Each point will be detailed below.
1.- ANNSYSTEM CODE ( Pine Language).
//@version=2
strategy("ANN Strategy")
threshold = input(title="Threshold", type=float, defval=0.0014, step=0.0001)
getDiff() =>
yesterday=security(tickerid, 'D', ohlc4[1])
today=security(tickerid, 'D', ohlc4)
delta=today-yesterday
percentage=delta/yesterday
PineActivationFunctionLinear(v) => v

