kingspreadfx_multi_1.5 .mq4
Похожие материалы по тегам
Сообщите нам, если считаете, что материал размещён без разрешения.
Сообщить о материале
Обращение по товару «kingspreadfx_multi_1.5 .mq4» отправится на рассмотрение. Укажите контакт для ответа и опишите причину.
О программе
Торговый советник для MetaTrader 4, работающий по принципу парного спреда. Советник обслуживает до 14 независимых пар инструментов, для каждой из которых задаются два символа, объёмы сделок и параметры сопровождения. Логика основана на сигналах внешнего пользовательского индикатора и вспомогательных индикаторов, подключаемых по имени, а также на данных свечей и текущих котировках.
Советник открывает и сопровождает парные позиции, поддерживает пирамидирование с настраиваемыми шагами, изменение объёма, целевые уровни прибыли и убытка в валюте, трейлинг-стоп, а также контроль просадки и дневных лимитов. Предусмотрены фильтры по времени торговли и ограничение числа одновременных операций в прибыли.
На графике выводится информационная панель с показателями по каждой паре и кнопками ручного управления: закрытие отдельной пары, закрытие всех позиций, закрытие прибыльных или убыточных позиций и переключатель разрешения новых наборов позиций. Советник также формирует уведомления об ошибках и событиях через алерты, push-уведомления и электронную почту.
Настройки программы
| Настройка | Описание |
|---|---|
| MagicInp | Уникальный идентификатор операций советника; должен быть больше нуля. |
| numeroStrumentiPossibili | Максимальное число одновременно обслуживаемых пар инструментов. |
| eaCoppia1 | Строковые настройки, передаваемые в подключаемый индикатор для первой пары. |
| strumento1Coppia1 | Имя первого торгового инструмента первой пары. |
| strumento2Coppia1 | Имя второго торгового инструмента первой пары. |
| contratti1Coppia1 | Объём сделки по первому инструменту первой пары. |
| contratti2Coppia1 | Объём сделки по второму инструменту первой пары. |
| pointsDistanzaOverlayCoppia1 | Минимальное расстояние в пунктах для сигнала наложения по первой паре. |
| valoreAmpiezzaMinimaBarreCoppia1 | Минимальная амплитуда для сигнала по первой паре. |
| eaCoppia2 | Строковые настройки, передаваемые в подключаемый индикатор для второй пары. |
| strumento1Coppia2 | Имя первого торгового инструмента второй пары. |
| strumento2Coppia2 | Имя второго торгового инструмента второй пары. |
| contratti1Coppia2 | Объём сделки по первому инструменту второй пары. |
| contratti2Coppia2 | Объём сделки по второму инструменту второй пары. |
| pointsDistanzaOverlayCoppia2 | Минимальное расстояние в пунктах для сигнала наложения по второй паре. |
| valoreAmpiezzaMinimaBarreCoppia2 | Минимальная амплитуда для сигнала по второй паре. |
| eaCoppia3 | Строковые настройки, передаваемые в подключаемый индикатор для третьей пары. |
| strumento1Coppia3 | Имя первого торгового инструмента третьей пары. |
| strumento2Coppia3 | Имя второго торгового инструмента третьей пары. |
| contratti1Coppia3 | Объём сделки по первому инструменту третьей пары. |
| contratti2Coppia3 | Объём сделки по второму инструменту третьей пары. |
| pointsDistanzaOverlayCoppia3 | Минимальное расстояние в пунктах для сигнала наложения по третьей паре. |
| valoreAmpiezzaMinimaBarreCoppia3 | Минимальная амплитуда для сигнала по третьей паре. |
| eaCoppia4 | Строковые настройки, передаваемые в подключаемый индикатор для четвёртой пары. |
| strumento1Coppia4 | Имя первого торгового инструмента четвёртой пары. |
| strumento2Coppia4 | Имя второго торгового инструмента четвёртой пары. |
| contratti1Coppia4 | Объём сделки по первому инструменту четвёртой пары. |
| contratti2Coppia4 | Объём сделки по второму инструменту четвёртой пары. |
| pointsDistanzaOverlayCoppia4 | Минимальное расстояние в пунктах для сигнала наложения по четвёртой паре. |
| valoreAmpiezzaMinimaBarreCoppia4 | Минимальная амплитуда для сигнала по четвёртой паре. |
| eaCoppia5 | Строковые настройки, передаваемые в подключаемый индикатор для пятой пары. |
| strumento1Coppia5 | Имя первого торгового инструмента пятой пары. |
| strumento2Coppia5 | Имя второго торгового инструмента пятой пары. |
| contratti1Coppia5 | Объём сделки по первому инструменту пятой пары. |
| contratti2Coppia5 | Объём сделки по второму инструменту пятой пары. |
| pointsDistanzaOverlayCoppia5 | Минимальное расстояние в пунктах для сигнала наложения по пятой паре. |
| valoreAmpiezzaMinimaBarreCoppia5 | Минимальная амплитуда для сигнала по пятой паре. |
| eaCoppia6 | Строковые настройки, передаваемые в подключаемый индикатор для шестой пары. |
| strumento1Coppia6 | Имя первого торгового инструмента шестой пары. |
| strumento2Coppia6 | Имя второго торгового инструмента шестой пары. |
| contratti1Coppia6 | Объём сделки по первому инструменту шестой пары. |
| contratti2Coppia6 | Объём сделки по второму инструменту шестой пары. |
| pointsDistanzaOverlayCoppia6 | Минимальное расстояние в пунктах для сигнала наложения по шестой паре. |
| valoreAmpiezzaMinimaBarreCoppia6 | Минимальная амплитуда для сигнала по шестой паре. |
| eaCoppia7 | Строковые настройки, передаваемые в подключаемый индикатор для седьмой пары. |
| strumento1Coppia7 | Имя первого торгового инструмента седьмой пары. |
| strumento2Coppia7 | Имя второго торгового инструмента седьмой пары. |
| contratti1Coppia7 | Объём сделки по первому инструменту седьмой пары. |
| contratti2Coppia7 | Объём сделки по второму инструменту седьмой пары. |
| pointsDistanzaOverlayCoppia7 | Минимальное расстояние в пунктах для сигнала наложения по седьмой паре. |
| valoreAmpiezzaMinimaBarreCoppia7 | Минимальная амплитуда для сигнала по седьмой паре. |
| eaCoppia8 | Строковые настройки, передаваемые в подключаемый индикатор для восьмой пары. |
| strumento1Coppia8 | Имя первого торгового инструмента восьмой пары. |
| strumento2Coppia8 | Имя второго торгового инструмента восьмой пары. |
| contratti1Coppia8 | Объём сделки по первому инструменту восьмой пары. |
| contratti2Coppia8 | Объём сделки по второму инструменту восьмой пары. |
| pointsDistanzaOverlayCoppia8 | Минимальное расстояние в пунктах для сигнала наложения по восьмой паре. |
| valoreAmpiezzaMinimaBarreCoppia8 | Минимальная амплитуда для сигнала по восьмой паре. |
| eaCoppia9 | Строковые настройки, передаваемые в подключаемый индикатор для девятой пары. |
| strumento1Coppia9 | Имя первого торгового инструмента девятой пары. |
| strumento2Coppia9 | Имя второго торгового инструмента девятой пары. |
| contratti1Coppia9 | Объём сделки по первому инструменту девятой пары. |
| contratti2Coppia9 | Объём сделки по второму инструменту девятой пары. |
| pointsDistanzaOverlayCoppia9 | Минимальное расстояние в пунктах для сигнала наложения по девятой паре. |
| valoreAmpiezzaMinimaBarreCoppia9 | Минимальная амплитуда для сигнала по девятой паре. |
| eaCoppia10 | Строковые настройки, передаваемые в подключаемый индикатор для десятой пары. |
| strumento1Coppia10 | Имя первого торгового инструмента десятой пары. |
| strumento2Coppia10 | Имя второго торгового инструмента десятой пары. |
| contratti1Coppia10 | Объём сделки по первому инструменту десятой пары. |
| contratti2Coppia10 | Объём сделки по второму инструменту десятой пары. |
| pointsDistanzaOverlayCoppia10 | Минимальное расстояние в пунктах для сигнала наложения по десятой паре. |
| valoreAmpiezzaMinimaBarreCoppia10 | Минимальная амплитуда для сигнала по десятой паре. |
| eaCoppia11 | Строковые настройки, передаваемые в подключаемый индикатор для одиннадцатой пары. |
| strumento1Coppia11 | Имя первого торгового инструмента одиннадцатой пары. |
| strumento2Coppia11 | Имя второго торгового инструмента одиннадцатой пары. |
| contratti1Coppia11 | Объём сделки по первому инструменту одиннадцатой пары. |
| contratti2Coppia11 | Объём сделки по второму инструменту одиннадцатой пары. |
| pointsDistanzaOverlayCoppia11 | Минимальное расстояние в пунктах для сигнала наложения по одиннадцатой паре. |
| valoreAmpiezzaMinimaBarreCoppia11 | Минимальная амплитуда для сигнала по одиннадцатой паре. |
| eaCoppia12 | Строковые настройки, передаваемые в подключаемый индикатор для двенадцатой пары. |
| strumento1Coppia12 | Имя первого торгового инструмента двенадцатой пары. |
| strumento2Coppia12 | Имя второго торгового инструмента двенадцатой пары. |
| contratti1Coppia12 | Объём сделки по первому инструменту двенадцатой пары. |
| contratti2Coppia12 | Объём сделки по второму инструменту двенадцатой пары. |
| pointsDistanzaOverlayCoppia12 | Минимальное расстояние в пунктах для сигнала наложения по двенадцатой паре. |
| valoreAmpiezzaMinimaBarreCoppia12 | Минимальная амплитуда для сигнала по двенадцатой паре. |
| eaCoppia13 | Строковые настройки, передаваемые в подключаемый индикатор для тринадцатой пары. |
| strumento1Coppia13 | Имя первого торгового инструмента тринадцатой пары. |
| strumento2Coppia13 | Имя второго торгового инструмента тринадцатой пары. |
| contratti1Coppia13 | Объём сделки по первому инструменту тринадцатой пары. |
| contratti2Coppia13 | Объём сделки по второму инструменту тринадцатой пары. |
| pointsDistanzaOverlayCoppia13 | Минимальное расстояние в пунктах для сигнала наложения по тринадцатой паре. |
| valoreAmpiezzaMinimaBarreCoppia13 | Минимальная амплитуда для сигнала по тринадцатой паре. |
| eaCoppia14 | Строковые настройки, передаваемые в подключаемый индикатор для четырнадцатой пары. |
| strumento1Coppia14 | Имя первого торгового инструмента четырнадцатой пары. |
| strumento2Coppia14 | Имя второго торгового инструмента четырнадцатой пары. |
| contratti1Coppia14 | Объём сделки по первому инструменту четырнадцатой пары. |
| contratti2Coppia14 | Объём сделки по второму инструменту четырнадцатой пары. |
| pointsDistanzaOverlayCoppia14 | Минимальное расстояние в пунктах для сигнала наложения по четырнадцатой паре. |
| valoreAmpiezzaMinimaBarreCoppia14 | Минимальная амплитуда для сигнала по четырнадцатой паре. |
Поиск по коду файла
#property version "1.00";
#property strict
#property description "Unlock/Decompile ex4/5 Telegram: t.me/rpfslb\n";
enum ETipoPiramidazione
{
EPiramidazioneNessuna = 0, // Disattivata
EPiramidazionePoints = 1, // In Points
EPiramidazioneIngressoSuccessivo = 2 // Ingresso successivo
};
enum ETipoIncrementoSize
{
ENessuno = 0, // Nessuno
EMoltiplicatore = 1, // Moltiplicatore
EAddizionale = 2 // Addizionale
};
enum ETipoControlloFlottante
{
EValutaConto = 0, // In Valuta Conto
EPercentualeSuBalance = 1 // Percentuale Su Balance
};
extern int MagicInp = 1; // Magic Number (1-100-200-300-400 etc..)
extern int numeroStrumentiPossibili = 5; // Numero coppie massime possibili
extern string eaCoppia1; // Impostazioni Coppia 1
extern string strumento1Coppia1; // Strumento 1
extern string strumento2Coppia1; // Strumento 2
extern double contratti1Coppia1 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia1 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia1; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia1; // Valore ampiezza minima bande
extern string eaCoppia2; // Impostazioni Coppia 2
extern string strumento1Coppia2; // Strumento 1
extern string strumento2Coppia2; // Strumento 2
extern double contratti1Coppia2 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia2 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia2; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia2; // Valore ampiezza minima bande
extern string eaCoppia3; // Impostazioni Coppia 3
extern string strumento1Coppia3; // Strumento 1
extern string strumento2Coppia3; // Strumento 2
extern double contratti1Coppia3 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia3 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia3; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia3; // Valore ampiezza minima bande
extern string eaCoppia4; // Impostazioni Coppia 4
extern string strumento1Coppia4; // Strumento 1
extern string strumento2Coppia4; // Strumento 2
extern double contratti1Coppia4 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia4 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia4; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia4; // Valore ampiezza minima bande
extern string eaCoppia5; // Impostazioni Coppia 5
extern string strumento1Coppia5; // Strumento 1
extern string strumento2Coppia5; // Strumento 2
extern double contratti1Coppia5 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia5 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia5; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia5; // Valore ampiezza minima bande
extern string eaCoppia6; // Impostazioni Coppia 6
extern string strumento1Coppia6; // Strumento 1
extern string strumento2Coppia6; // Strumento 2
extern double contratti1Coppia6 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia6 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia6; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia6; // Valore ampiezza minima bande
extern string eaCoppia7; // Impostazioni Coppia 7
extern string strumento1Coppia7; // Strumento 1
extern string strumento2Coppia7; // Strumento 2
extern double contratti1Coppia7 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia7 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia7; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia7; // Valore ampiezza minima bande
extern string eaCoppia8; // Impostazioni Coppia 8
extern string strumento1Coppia8; // Strumento 1
extern string strumento2Coppia8; // Strumento 2
extern double contratti1Coppia8 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia8 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia8; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia8; // Valore ampiezza minima bande
extern string eaCoppia9; // Impostazioni Coppia 9
extern string strumento1Coppia9; // Strumento 1
extern string strumento2Coppia9; // Strumento 2
extern double contratti1Coppia9 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia9 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia9; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia9; // Valore ampiezza minima bande
extern string eaCoppia10; // Impostazioni Coppia 10
extern string strumento1Coppia10; // Strumento 1
extern string strumento2Coppia10; // Strumento 2
extern double contratti1Coppia10 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia10 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia10; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia10; // Valore ampiezza minima bande
extern string eaCoppia11; // Impostazioni Coppia 11
extern string strumento1Coppia11; // Strumento 1
extern string strumento2Coppia11; // Strumento 2
extern double contratti1Coppia11 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia11 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia11; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia11; // Valore ampiezza minima bande
extern string eaCoppia12; // Impostazioni Coppia 12
extern string strumento1Coppia12; // Strumento 1
extern string strumento2Coppia12; // Strumento 2
extern double contratti1Coppia12 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia12 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia12; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia12; // Valore ampiezza minima bande
extern string eaCoppia13; // Impostazioni Coppia 13
extern string strumento1Coppia13; // Strumento 1
extern string strumento2Coppia13; // Strumento 2
extern double contratti1Coppia13 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia13 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia13; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia13; // Valore ampiezza minima bande
extern string eaCoppia14; // Impostazioni Coppia 14
extern string strumento1Coppia14; // Strumento 1
extern string strumento2Coppia14; // Strumento 2
extern double contratti1Coppia14 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia14 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia14; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia14; // Valore ampiezza minima bande
extern string eaCoppia15; // Impostazioni Coppia 15
extern string strumento1Coppia15; // Strumento 1
extern string strumento2Coppia15; // Strumento 2
extern double contratti1Coppia15 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia15 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia15; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia15; // Valore ampiezza minima bande
extern string eaCoppia16; // Impostazioni Coppia 16
extern string strumento1Coppia16; // Strumento 1
extern string strumento2Coppia16; // Strumento 2
extern double contratti1Coppia16 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia16 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia16; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia16; // Valore ampiezza minima bande
extern string eaCoppia17; // Impostazioni Coppia 17
extern string strumento1Coppia17; // Strumento 1
extern string strumento2Coppia17; // Strumento 2
extern double contratti1Coppia17 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia17 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia17; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia17; // Valore ampiezza minima bande
extern string eaCoppia18; // Impostazioni Coppia 18
extern string strumento1Coppia18; // Strumento 1
extern string strumento2Coppia18; // Strumento 2
extern double contratti1Coppia18 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia18 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia18; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia18; // Valore ampiezza minima bande
extern string eaCoppia19; // Impostazioni Coppia 19
extern string strumento1Coppia19; // Strumento 1
extern string strumento2Coppia19; // Strumento 2
extern double contratti1Coppia19 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia19 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia19; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia19; // Valore ampiezza minima bande
extern string eaCoppia20; // Impostazioni Coppia 20
extern string strumento1Coppia20; // Strumento 1
extern string strumento2Coppia20; // Strumento 2
extern double contratti1Coppia20 = 0.01; // Contratti Strumento 1
extern double contratti2Coppia20 = 0.01; // Contratti Strumento 2
extern int pointsDistanzaOverlayCoppia20; // Points Distanza Overlay
extern double valoreAmpiezzaMinimaBarreCoppia20; // Valore ampiezza minima bande
extern string commentoAggiuntivo; // Commento Aggiuntivo
extern string eaIndicatoreSpreadRatio; // Impostazioni Spread Ratio
extern string ea; // <--- Impostazioni Bollinger --->
extern int periodoBollinger = 40; // Periodo Bollinger
extern double deviazioneStandard = 1; // Deviazione Standard
extern string eaOverlay; // Impostazioni Overlay
extern int numeroBarre = 200; // Numero Barre
extern bool utilizzaOverlay; // Utilizza Overlay Chart
extern string eaOperativita; //Operating settings
extern string orarioOperativita = "00:00:00-23:59:59"; //Operating Time (Broker)
extern string orarioOperativita2 = "00:00:00-23:59:59"; //Operating Time 2 (Broker)
extern ETipoPiramidazione tipoPiramidazione = EPiramidazioneNessuna; // Selezionare il tipo di Piramidazione
extern int numeroMassimoPiramidazioni; //Maximum number of operations, 0 is unlimited
extern int pointsDistanzaPiramidazione; //Points Distance pyramiding Step 1(from first instrument)
extern int numeroPiramidazioneStep2; // Numero Piramidazioni per Step 2
extern int pointsDistanzaPiramidazioneStep2; // Points Distanza piramidazione Step 2
extern int numeroPiramidazioneStep3; // Numero Piramidazioni per Step 3
extern int pointsDistanzaPiramidazioneStep3; // Points Distanza piramidazione Step 3
extern int numeroPiramidazioneStep4; // Numero Piramidazioni per Step 4
extern int pointsDistanzaPiramidazioneStep4; // Points Distanza piramidazione Step 4
extern ETipoIncrementoSize tipoIncrementoSize = ENessuno; // Selezionare il tipo di incremento della size
extern double valoreIncremento = 0.01; // Valore incremento
extern double targetValuta = 10; //Target Currency, 0 is disabled
extern int numeroMediazioniAttivazioneSecondoTarget; //Number of Mediations Activation Second Target, 0 is disabled.
extern double targetValuta2 = 10; // Target Valuta 2
extern double stopValuta; //Stoploss Currency, 0 is disabled
extern double trailingStopStart; //Trailing Stop Start, 0 is disabled
extern double trailingStop; // Trailing Stop
extern double trailingStep; // Trailing Step
extern bool utilizzaChiusuraBandaCentrale; // Utilizza Chiusura banda centrale
extern int numeroMassimoOperazioniInGain; // Numero massimo operazioni in gain
extern double massimoGainGiornaliero; //Maximum Daily Gain in currency, 0 is disabled
extern double massimoLossGiornaliero; //Maximum Daily Loss in currency, 0 is disabled
extern int minutiControlloPosizioniDisallineate = 5; //Minutes Check misaligned positions, 0 is disabled
extern bool limitaIngressoNuoveOperazioniSeSuperatoDD; // Limita Ingresso Nuove Operazioni Se Superato DD
extern ETipoControlloFlottante tipoControlloFlottante = EValutaConto; // Selezionare il tipo di controllo flottante
extern double valoreLimite; // Valore Limite
extern int grandezzaFont = 10; // Grandezza Caratteri
extern string exEA1 = "<---------- Allarmi ---------->"; // <>
extern string exEA2; // <--- Allarmi causa Errori --->
extern bool utilizzaAllarmiErrore = true; // Allarmi EA per errori
extern bool utilizzaAlertErrore = true; // Utilizza Allarme per errori
extern bool utilizzaPopupErrore = true; // Utilizza Notifiche Push per errori
extern bool utilizzaMailErrore = true; // Utilizza Invio Mail per errori
extern string exEA3; // <--- Allarmi per Inserimento Ordini --->
extern bool utilizzaAllarmiInserimentoOrdini = true; // Allarmi EA per inserimento ordini
extern bool utilizzaAlertInserimentoOrdini = true; // Utilizza Allarme per inserimento ordini
extern bool utilizzaPopupInserimentoOrdini = true; //Use Push Notifications for order insertion
extern bool utilizzaMailInserimentoOrdini = true; // Utilizza Invio Mail per inserimento ordini
extern string exEA4; // <--- Allarmi per Modifica Ordini( Stoploss & Takeprofit )--->
extern bool utilizzaAllarmiModificaOrdini = true; // Allarmi EA per modifica ordini
extern bool utilizzaAlertModificaOrdini = true; // Utilizza Allarme per modifica ordini
extern bool utilizzaPopupModificaOrdini = true; // Utilizza Notifiche Push per modifica ordini
extern bool utilizzaMailModificaOrdini = true; // Utilizza Invio Mail per modifica ordini
int Gi_000000;
bool Gb_000001;
bool returned_b;
int Gi_000005;
string Gs_000005;
int Gi_000006;
string Gs_000006;
int Gi_000007;
string Gs_000007;
int Gi_000008;
string Gs_000008;
int Gi_000009;
string Gs_000009;
int Gi_00000A;
string Gs_00000A;
int Gi_00000B;
string Gs_00000B;
int Gi_00000C;
string Gs_00000C;
int Gi_00000D;
string Gs_00000D;
int Gi_00000E;
string Gs_00000E;
int Gi_00000F;
string Gs_00000F;
int Gi_000010;
string Gs_000010;
int Gi_000011;
string Gs_000011;
int Gi_000012;
string Gs_000012;
int Gi_000013;
string Gs_000013;
int Gi_000014;
string Gs_000014;
int Gi_000015;
string Gs_000015;
int Gi_000016;
string Gs_000016;
int Gi_000017;
string Gs_000017;
int Gi_000018;
string Gs_000018;
int Gi_000019;
string Gs_000019;
int Gi_00001A;
string Gs_00001A;
int Gi_00001B;
string Gs_00001B;
int Gi_00001C;
string Gs_00001C;
int Gi_00001D;
string Gs_00001D;
int Gi_00001E;
string Gs_00001E;
int Gi_00001F;
string Gs_00001F;
int Gi_000020;
string Gs_000020;
int Gi_000021;
string Gs_000021;
int Gi_000022;
string Gs_000022;
int Gi_000023;
string Gs_000023;
int Gi_000024;
string Gs_000024;
int Gi_000025;
string Gs_000025;
int Gi_000026;
string Gs_000026;
int Gi_000027;
string Gs_000027;
int Gi_000028;
string Gs_000028;
int Gi_000029;
string Gs_000029;
int Gi_00002A;
string Gs_00002A;
int Gi_00002B;
string Gs_00002B;
int Gi_00002C;
string Gs_00002C;
int Gi_00002D;
double Gd_00002D;
int Gi_00002E;
double Gd_00002E;
int Gi_00002F;
double Gd_00002F;
int Gi_000030;
double Gd_000030;
int Gi_000031;
double Gd_000031;
int Gi_000032;
double Gd_000032;
int Gi_000033;
double Gd_000033;
int Gi_000034;
double Gd_000034;
int Gi_000035;
double Gd_000035;
int Gi_000036;
double Gd_000036;
int Gi_000037;
double Gd_000037;
int Gi_000038;
double Gd_000038;
int Gi_000039;
double Gd_000039;
int Gi_00003A;
double Gd_00003A;
int Gi_00003B;
double Gd_00003B;
int Gi_00003C;
double Gd_00003C;
int Gi_00003D;
double Gd_00003D;
int Gi_00003E;
double Gd_00003E;
int Gi_00003F;
double Gd_00003F;
int Gi_000040;
double Gd_000040;
int Gi_000041;
double Gd_000041;
int Gi_000042;
double Gd_000042;
int Gi_000043;
double Gd_000043;
int Gi_000044;
double Gd_000044;
int Gi_000045;
double Gd_000045;
int Gi_000046;
double Gd_000046;
int Gi_000047;
double Gd_000047;
int Gi_000048;
double Gd_000048;
int Gi_000049;
double Gd_000049;
int Gi_00004A;
double Gd_00004A;
int Gi_00004B;
double Gd_00004B;
int Gi_00004C;
double Gd_00004C;
int Gi_00004D;
double Gd_00004D;
int Gi_00004E;
double Gd_00004E;
int Gi_00004F;
double Gd_00004F;
int Gi_000050;
double Gd_000050;
int Gi_000051;
double Gd_000051;
int Gi_000052;
double Gd_000052;
int Gi_000053;
double Gd_000053;
int Gi_000054;
double Gd_000054;
int Gi_000055;
int Gi_000056;
int Gi_000057;
int Gi_000058;
int Gi_000059;
int Gi_00005A;
int Gi_00005B;
int Gi_00005C;
int Gi_00005D;
int Gi_00005E;
int Gi_00005F;
int Gi_000060;
int Gi_000061;
int Gi_000062;
int Gi_000063;
int Gi_000064;
int Gi_000065;
int Gi_000066;
int Gi_000067;
int Gi_000068;
int Gi_000069;
double Gd_000069;
int Gi_00006A;
double Gd_00006A;
int Gi_00006B;
double Gd_00006B;
int Gi_00006C;
double Gd_00006C;
int Gi_00006D;
double Gd_00006D;
int Gi_00006E;
double Gd_00006E;
int Gi_00006F;
double Gd_00006F;
int Gi_000070;
double Gd_000070;
int Gi_000071;
double Gd_000071;
int Gi_000072;
double Gd_000072;
int Gi_000073;
double Gd_000073;
int Gi_000074;
double Gd_000074;
int Gi_000075;
double Gd_000075;
int Gi_000076;
double Gd_000076;
int Gi_000077;
double Gd_000077;
int Gi_000078;
double Gd_000078;
int Gi_000079;
double Gd_000079;
int Gi_00007A;
double Gd_00007A;
int Gi_00007B;
double Gd_00007B;
int Gi_00007C;
double Gd_00007C;
int returned_i;
int Gi_000002;
long Gl_000003;
long returned_l;
int Gi_000004;
long Gl_000005;
long Il_009C78;
int Ii_00D778;
string Gs_000000;
int Gi_000001;
string Gs_000001;
string Gs_000002;
int Gi_000003;
string Gs_000003;
bool Gb_00000C;
double Gd_00000D;
bool Gb_000010;
double Gd_000011;
bool Gb_000012;
bool Gb_000016;
string Is_009CA0;
double Gd_000018;
double Gd_000019;
double Ind_000;
long Gl_00001B;
double Gd_00001B;
double Gd_00001D;
bool Gb_00001D;
double Gd_000013;
double Gd_000014;
long Gl_000016;
double Gd_000016;
bool Gb_000006;
bool Gb_000009;
short Gst_000001;
short returned_st;
string Gs_000004;
double Gd_000010;
double Gd_000012;
double Gd_000009;
double Gd_000008;
double Gd_00000E;
double Gd_00000A;
bool Gb_00000E;
bool Ib_009C80;
string Is_009C88;
long Il_009C98;
int Ii_009CAC;
int Ii_009DE8;
int Ii_009DEC;
int Ii_009DF0;
long Il_009DF8;
long Gl_000000;
bool Gb_00001F;
double Ind_003;
long Gl_000020;
bool Gb_000023;
long Gl_000024;
long Gl_000026;
bool Gb_000027;
bool Gb_000029;
long Gl_00002B;
long Gl_000033;
string Gs_000033;
string Gs_000034;
bool Gb_000036;
double Ind_002;
long Gl_000037;
double Ind_004;
bool Gb_000038;
long Gl_000039;
bool Gb_00002A;
bool Gb_000028;
bool Gb_000024;
bool Gb_000020;
double Gd_000003;
double Gd_000002;
double Gd_000004;
bool Gb_00000A;
long Gl_00000B;
long Gl_000012;
bool Gb_000015;
bool Gb_000018;
bool Gb_00001A;
long Gl_00001C;
bool Gb_00001B;
bool Gb_000019;
double Gd_000000;
double Gd_000001;
long Gl_000001;
long Gl_000002;
short Gst_000000;
bool Gb_000000;
bool Gb_000003;
double Gd_000005;
double Gd_000006;
double Gd_000007;
bool Gb_000007;
double Gd_00000B;
bool Gb_00000B;
double Gd_00000F;
bool Gb_00000F;
bool Gb_000014;
long Gl_000022;
double Gd_000023;
double Gd_000022;
long Gl_000023;
double Gd_000024;
long Gl_000025;
bool Gb_00002D;
bool Gb_00002F;
long Gl_000031;
bool Gb_000032;
long Gl_000038;
long Gl_00003A;
bool Gb_000037;
double Gd_00001E;
double Gd_00001F;
bool Gb_000022;
bool Gb_000004;
long Gl_000009;
long Gl_000006;
long Gl_00000A;
long Gl_00000C;
long Gl_000015;
long Gl_000017;
long Gl_000018;
bool Gb_000005;
long Gl_000007;
bool Gb_000002;
int Ii_000034[10000] = { 97606, 97628, 97664, 92109, 90887, 41615, 93487, 95965, 59787, 82969, 71581, 85336, 5545802, 99224, 97664, 48819, 65896 };
string Is_009CB0[];
string Is_009CE4[];
double Id_009D18[];
double Id_009D4C[];
int Ii_009D80[];
double Id_009DB4[];
long Il_009E34[300];
long Il_00A7C8[300];
long Il_00B15C[300];
long Il_00BAF0[300];
double Id_00C484[300];
double Id_00CE18[300];
int init()
{
// код доступен только после оплаты
}
void OnTick()
{
// код доступен только после оплаты
}
void OnDeinit(const int reason)
{
ObjectsDeleteAll(0, Is_009CA0, -1, -1);
}
void OnChartEvent(const int id, const long& lparam, const double& dparam, const string& sparam)
{
string tmp_str000000;
string tmp_str000001;
string tmp_str000002;
string tmp_str000003;
string tmp_str000004;
string tmp_str000005;
string tmp_str000006;
string tmp_str000007;
string tmp_str000008;
string tmp_str000009;
string tmp_str00000A;
string tmp_str00000B;
string tmp_str00000C;
string tmp_str00000D;
string tmp_str00000E;
string tmp_str00000F;
string tmp_str000010;
string tmp_str000011;
string tmp_str000012;
string tmp_str000013;
string tmp_str000014;
string tmp_str000015;
string tmp_str000016;
string tmp_str000017;
string tmp_str000018;
string tmp_str000019;
string tmp_str00001A;
string tmp_str00001B;
string tmp_str00001C;
string tmp_str00001D;
string tmp_str00001E;
string tmp_str00001F;
string tmp_str000020;
string tmp_str000021;
string tmp_str000022;
string tmp_str000023;
string tmp_str000024;
string tmp_str000025;
string tmp_str000026;
string tmp_str000027;
string tmp_str000028;
string tmp_str000029;
string tmp_str00002A;
string tmp_str00002B;
string tmp_str00002C;
string tmp_str00002D;
string tmp_str00002E;
string tmp_str00002F;
int Li_FFFFC8;
int Li_FFFFC4;
int Li_FFFFC0;
string Ls_FFFFB0;
string Ls_FFFFA0;
int Li_FFFF9C;
int Li_FFFF98;
string Ls_FFFF88;
string Ls_FFFF78;
int Li_FFFF74;
int Li_FFFF70;
string Ls_FFFF60;
string Ls_FFFF50;
int Li_FFFF24;
int Li_FFFF20;
string Ls_FFFF10;
string Ls_FFFF00;
string Ls_FFFEF0;
double Ld_FFFEE8;
double Ld_FFFEE0;
double Ld_FFFED8;
string Ls_FFFF40;
double Ld_FFFF38;
double Ld_FFFF30;
double Ld_FFFF28;
tmp_str000000 = Is_009CA0 + "mini";
if (sparam == tmp_str000000) {
if (ObjectGetString(0, sparam, 999, 0) == "-") {
ObjectSetString(0, sparam, 999, "Ê");
ObjectSetString(0, sparam, 1001, "Wingdings 2");
ObjectsDeleteAll(0, Is_009CA0, -1, -1);
func_1010();
}
else {
if (ObjectGetString(0, sparam, 999, 0) == "Ê") {
ObjectSetString(0, sparam, 999, "-");
ObjectSetString(0, sparam, 1001, "Dubai");
func_1010();
}}}
tmp_str000000 = Is_009CA0 + "_chiudiTutto_";
if (StringFind(sparam, tmp_str000000, 0) >= 0) {
string Ls_FFFFCC[];
tmp_str000001 = sparam;
tmp_str000002 = tmp_str000001;
tmp_str000003 = "_";
Gst_000001 = (short)StringGetCharacter(tmp_str000003, 0);
StringSplit(tmp_str000002, Gst_000001, Ls_FFFFCC);
Li_FFFFC8 = (int)Ls_FFFFCC[2];
Li_FFFFC4 = MagicInp;
tmp_str000004 = (string)Li_FFFFC8;
tmp_str000004 = "Numero cliccato :" + tmp_str000004;
Print(tmp_str000004);
Li_FFFFC0 = 0;
if (ArraySize(Is_009CB0) > 0) {
do {
Ls_FFFFB0 = Is_009CB0[Li_FFFFC0];
Ls_FFFFA0 = Is_009CE4[Li_FFFFC0];
if (Ls_FFFFB0 == "") {
Li_FFFFC4 = Li_FFFFC4 + 1;
}
else {
if (Li_FFFFC8 == Li_FFFFC4) {
tmp_str000005 = "Trovato : " + Ls_FFFFB0;
tmp_str000005 = tmp_str000005 + " ";
tmp_str000005 = tmp_str000005 + Ls_FFFFA0;
Print(tmp_str000005);
tmp_str000006 = "Chiusura manuale";
tmp_str000007 = "LS";
tmp_str000008 = Ls_FFFFA0;
tmp_str000009 = Ls_FFFFB0;
func_1034(tmp_str000009, tmp_str000008, Li_FFFFC4, tmp_str000007, tmp_str000006);
tmp_str00000A = "Chiusura manuale";
tmp_str00000B = "SS";
tmp_str00000C = Ls_FFFFA0;
tmp_str00000D = Ls_FFFFB0;
func_1034(tmp_str00000D, tmp_str00000C, Li_FFFFC4, tmp_str00000B, tmp_str00000A);
break;
}
Li_FFFFC4 = Li_FFFFC4 + 1;
}
Li_FFFFC0 = Li_FFFFC0 + 1;
} while (Li_FFFFC0 < ArraySize(Is_009CB0));
}
ArrayFree(Ls_FFFFCC);
}
tmp_str00000E = Is_009CA0 + "_chiudiTotale";
if (sparam == tmp_str00000E) {
Li_FFFF9C = MagicInp;
Li_FFFF98 = 0;
if (ArraySize(Is_009CB0) > 0) {
do {
Ls_FFFF88 = Is_009CB0[Li_FFFF98];
Ls_FFFF78 = Is_009CE4[Li_FFFF98];
tmp_str00000E = "Trovato Totale : " + Ls_FFFF88;
tmp_str00000E = tmp_str00000E + " ";
tmp_str00000E = tmp_str00000E + Ls_FFFF78;
Print(tmp_str00000E);
tmp_str00000F = "Chiusura Totale manuale";
tmp_str000010 = "LS";
tmp_str000011 = Ls_FFFF78;
tmp_str000012 = Ls_FFFF88;
func_1034(tmp_str000012, tmp_str000011, Li_FFFF9C, tmp_str000010, tmp_str00000F);
tmp_str000013 = "Chiusura Totale manuale";
tmp_str000014 = "SS";
tmp_str000015 = Ls_FFFF78;
tmp_str000016 = Ls_FFFF88;
func_1034(tmp_str000016, tmp_str000015, Li_FFFF9C, tmp_str000014, tmp_str000013);
Li_FFFF9C = Li_FFFF9C + 1;
Li_FFFF98 = Li_FFFF98 + 1;
} while (Li_FFFF98 < ArraySize(Is_009CB0));
}}
tmp_str000017 = Is_009CA0 + "_chiudiGain";
if (sparam == tmp_str000017) {
Li_FFFF74 = MagicInp;
Li_FFFF70 = 0;
if (ArraySize(Is_009CB0) > 0) {
do {
Ls_FFFF60 = Is_009CB0[Li_FFFF70];
Ls_FFFF50 = Is_009CE4[Li_FFFF70];
if (Ls_FFFF60 == "" || Ls_FFFF50 == "") {
Li_FFFF74 = Li_FFFF74 + 1;
}
else {
Ls_FFFF40 = "Flat";
Ld_FFFF38 = 0;
Ld_FFFF30 = 0;
Ld_FFFF28 = 0;
Gi_00000C = Li_FFFF74;
tmp_str000017 = Ls_FFFF50;
tmp_str000018 = Ls_FFFF60;
Gi_00000D = OrdersTotal();
if (Gi_00000D >= 0) {
do {
if (OrderSelect(Gi_00000D, 0, 0) && OrderMagicNumber() == Gi_00000C) {
if (OrderSymbol() == tmp_str000018 || OrderSymbol() == tmp_str000017) {
tmp_str000019 = OrderComment();
if (StringSubstr(tmp_str000019, 0, 2) == "LS") {
Ls_FFFF40 = "Long Spread";
}
else {
Ls_FFFF40 = "Short Spread";
}
if (OrderSymbol() == tmp_str000018) {
Ld_FFFF30 = (Ld_FFFF30 + NormalizeDouble(OrderLots(), 2));
}
if (OrderSymbol() == tmp_str000017) {
Ld_FFFF28 = (Ld_FFFF28 + NormalizeDouble(OrderLots(), 2));
}
Gd_00000E = OrderProfit();
Gd_00000E = (Gd_00000E + OrderSwap());
Ld_FFFF38 = ((Gd_00000E + OrderCommission()) + Ld_FFFF38);
}}
Gi_00000D = Gi_00000D - 1;
} while (Gi_00000D >= 0);
}
if ((Ld_FFFF38 > 0)) {
tmp_str00001A = "Chiusura Totale Gain";
tmp_str00001B = "LS";
tmp_str00001C = Ls_FFFF50;
tmp_str00001D = Ls_FFFF60;
func_1034(tmp_str00001D, tmp_str00001C, Li_FFFF74, tmp_str00001B, tmp_str00001A);
tmp_str00001E = "Chiusura Totale Gain";
tmp_str00001F = "SS";
tmp_str000020 = Ls_FFFF50;
tmp_str000021 = Ls_FFFF60;
func_1034(tmp_str000021, tmp_str000020, Li_FFFF74, tmp_str00001F, tmp_str00001E);
}
Li_FFFF74 = Li_FFFF74 + 1;
}
Li_FFFF70 = Li_FFFF70 + 1;
} while (Li_FFFF70 < ArraySize(Is_009CB0));
}}
tmp_str000022 = Is_009CA0 + "_chiudiLoss";
if (sparam == tmp_str000022) {
Li_FFFF24 = MagicInp;
Li_FFFF20 = 0;
if (ArraySize(Is_009CB0) > 0) {
do {
Ls_FFFF10 = Is_009CB0[Li_FFFF20];
Ls_FFFF00 = Is_009CE4[Li_FFFF20];
if (Ls_FFFF10 == "" || Ls_FFFF00 == "") {
Li_FFFF24 = Li_FFFF24 + 1;
}
else {
Ls_FFFEF0 = "Flat";
Ld_FFFEE8 = 0;
Ld_FFFEE0 = 0;
Ld_FFFED8 = 0;
Gi_000014 = Li_FFFF24;
tmp_str000022 = Ls_FFFF00;
tmp_str000023 = Ls_FFFF10;
Gi_000015 = OrdersTotal();
if (Gi_000015 >= 0) {
do {
if (OrderSelect(Gi_000015, 0, 0) && OrderMagicNumber() == Gi_000014) {
if (OrderSymbol() == tmp_str000023 || OrderSymbol() == tmp_str000022) {
tmp_str000024 = OrderComment();
if (StringSubstr(tmp_str000024, 0, 2) == "LS") {
Ls_FFFEF0 = "Long Spread";
}
else {
Ls_FFFEF0 = "Short Spread";
}
if (OrderSymbol() == tmp_str000023) {
Ld_FFFEE0 = (Ld_FFFEE0 + NormalizeDouble(OrderLots(), 2));
}
if (OrderSymbol() == tmp_str000022) {
Ld_FFFED8 = (Ld_FFFED8 + NormalizeDouble(OrderLots(), 2));
}
Gd_000016 = OrderProfit();
Gd_000016 = (Gd_000016 + OrderSwap());
Ld_FFFEE8 = ((Gd_000016 + OrderCommission()) + Ld_FFFEE8);
}}
Gi_000015 = Gi_000015 - 1;
} while (Gi_000015 >= 0);
}
if ((Ld_FFFEE8 < 0)) {
tmp_str000025 = "Chiusura Totale Loss";
tmp_str000026 = "LS";
tmp_str000027 = Ls_FFFF00;
tmp_str000028 = Ls_FFFF10;
func_1034(tmp_str000028, tmp_str000027, Li_FFFF24, tmp_str000026, tmp_str000025);
tmp_str000029 = "Chiusura Totale Loss";
tmp_str00002A = "SS";
tmp_str00002B = Ls_FFFF00;
tmp_str00002C = Ls_FFFF10;
func_1034(tmp_str00002C, tmp_str00002B, Li_FFFF24, tmp_str00002A, tmp_str000029);
}
Li_FFFF24 = Li_FFFF24 + 1;
}
Li_FFFF20 = Li_FFFF20 + 1;
} while (Li_FFFF20 < ArraySize(Is_009CB0));
}}
tmp_str00002D = Is_009CA0 + "_newGrids";
if (sparam != tmp_str00002D) return;
tmp_str00002D = IntegerToString(MagicInp, 0, 32);
tmp_str00002D = tmp_str00002D + "_newgrid";
if (GlobalVariableGet(tmp_str00002D) != 0) {
tmp_str00002E = IntegerToString(MagicInp, 0, 32);
tmp_str00002E = tmp_str00002E + "_newgrid";
GlobalVariableSet(tmp_str00002E, 0);
ObjectSetInteger(0, sparam, 1025, 255);
ObjectSetInteger(0, sparam, 1035, 255);
ObjectSetString(0, sparam, 999, "New grids NOT allowed!");
}
else {
tmp_str00002F = IntegerToString(MagicInp, 0, 32);
tmp_str00002F = tmp_str00002F + "_newgrid";
GlobalVariableSet(tmp_str00002F, 1);
ObjectSetInteger(0, sparam, 1025, 3329330);
ObjectSetInteger(0, sparam, 1035, 3329330);
ObjectSetString(0, sparam, 999, "New grids allowed");
}
ObjectSetInteger(0, sparam, 1018, 0);
}
void func_1010()
{
string tmp_str000000;
string tmp_str000001;
string tmp_str000002;
string tmp_str000003;
string tmp_str000004;
string tmp_str000005;
string tmp_str000006;
string tmp_str000007;
string tmp_str000008;
string tmp_str000009;
string tmp_str00000A;
string tmp_str00000B;
string tmp_str00000C;
string tmp_str00000D;
string tmp_str00000E;
string tmp_str00000F;
string tmp_str000010;
string tmp_str000011;
string tmp_str000012;
string tmp_str000013;
string tmp_str000014;
string tmp_str000015;
string tmp_str000016;
string tmp_str000017;
string tmp_str000018;
string tmp_str000019;
string tmp_str00001A;
string tmp_str00001B;
string tmp_str00001C;
string tmp_str00001D;
string tmp_str00001E;
string tmp_str00001F;
string tmp_str000020;
string tmp_str000021;
string tmp_str000022;
string tmp_str000023;
string tmp_str000024;
string tmp_str000025;
string tmp_str000026;
string tmp_str000027;
string tmp_str000028;
string tmp_str000029;
string tmp_str00002A;
string tmp_str00002B;
string tmp_str00002C;
string tmp_str00002D;
string tmp_str00002E;
string tmp_str00002F;
string tmp_str000030;
string tmp_str000031;
string tmp_str000032;
string tmp_str000033;
string tmp_str000034;
string tmp_str000035;
string tmp_str000036;
string tmp_str000037;
string tmp_str000038;
string tmp_str000039;
int Li_FFFFFC;
double Ld_FFE818;
int Li_FFE814;
double Ld_FFE808;
int Li_FFE804;
double Ld_FFE7F8;
int Li_FFE7F4;
int Li_FFE7F0;
string Ls_FFE7E0;
string Ls_FFE7D0;
bool Lb_FFE7A7;
int Li_FFE7A0;
string Ls_FFE790;
string Ls_FFE780;
double Ld_FFE778;
int Li_FFE774;
int Li_FFE770;
string Ls_FFE7C0;
double Ld_FFE7B8;
double Ld_FFE7B0;
double Ld_FFE7A8;
tmp_str000000 = IntegerToString(MagicInp, 0, 32);
tmp_str000001 = Is_009CA0 + "magic";
ObjectCreate(0, tmp_str000001, OBJ_LABEL, 0, 0, 0, 0, 0, 0, 0);
ObjectSetText(tmp_str000001, tmp_str000000, 20, "Dubai", 8421504);
ObjectSet(tmp_str000001, OBJPROP_CORNER, 1);
ObjectSet(tmp_str000001, OBJPROP_XDISTANCE, 5);
ObjectSet(tmp_str000001, OBJPROP_YDISTANCE, 30);
ObjectSetInteger(0, tmp_str000001, 1011, 5);
tmp_str000002 = Is_009CA0 + "mini";
if (ObjectFind(tmp_str000002) < 0) {
tmp_str000003 = "Dubai";
tmp_str000004 = "SPREAD EA";
tmp_str000005 = Is_009CA0 + "spreadEAButton";
ObjectCreate(0, tmp_str000005, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str000005, 102, 10);
ObjectSetInteger(0, tmp_str000005, 101, 0);
ObjectSetInteger(0, tmp_str000005, 103, 20);
ObjectSetInteger(0, tmp_str000005, 1019, 150);
ObjectSetInteger(0, tmp_str000005, 1020, 30);
ObjectSetString(0, tmp_str000005, 999, tmp_str000004);
ObjectSetString(0, tmp_str000005, 1001, tmp_str000003);
ObjectSetInteger(0, tmp_str000005, 6, 255);
ObjectSetInteger(0, tmp_str000005, 1025, Ii_009DEC);
ObjectSetInteger(0, tmp_str000005, 1035, Ii_009DEC);
ObjectSetInteger(0, tmp_str000005, 1029, 1);
ObjectSetInteger(0, tmp_str000005, 208, 1);
ObjectSetInteger(0, tmp_str000005, 1018, 0);
ObjectSetInteger(0, tmp_str000005, 100, 12);
ObjectSetInteger(0, tmp_str000005, 9, 0);
tmp_str000006 = "Wingdings 2";
tmp_str000007 = "Ê";
tmp_str000008 = Is_009CA0 + "mini";
ObjectCreate(0, tmp_str000008, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str000008, 102, 150);
ObjectSetInteger(0, tmp_str000008, 101, 0);
ObjectSetInteger(0, tmp_str000008, 103, 20);
ObjectSetInteger(0, tmp_str000008, 1019, 30);
ObjectSetInteger(0, tmp_str000008, 1020, 30);
ObjectSetString(0, tmp_str000008, 999, tmp_str000007);
ObjectSetString(0, tmp_str000008, 1001, tmp_str000006);
ObjectSetInteger(0, tmp_str000008, 6, 255);
ObjectSetInteger(0, tmp_str000008, 1025, Ii_009DEC);
ObjectSetInteger(0, tmp_str000008, 1035, Ii_009DEC);
ObjectSetInteger(0, tmp_str000008, 1029, 1);
ObjectSetInteger(0, tmp_str000008, 208, 1);
ObjectSetInteger(0, tmp_str000008, 1018, 0);
ObjectSetInteger(0, tmp_str000008, 100, 13);
ObjectSetInteger(0, tmp_str000008, 9, 0);
}
tmp_str000009 = Is_009CA0 + "mini";
if (ObjectGetString(0, tmp_str000009, 999, 0) == "Ê") return;
tmp_str00000A = "Dubai";
tmp_str00000B = "";
tmp_str00000C = Is_009CA0 + "background";
ObjectCreate(0, tmp_str00000C, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str00000C, 102, 10);
ObjectSetInteger(0, tmp_str00000C, 101, 0);
ObjectSetInteger(0, tmp_str00000C, 103, 45);
ObjectSetInteger(0, tmp_str00000C, 1019, Ii_009DF0);
ObjectSetInteger(0, tmp_str00000C, 1020, 200);
ObjectSetString(0, tmp_str00000C, 999, tmp_str00000B);
ObjectSetString(0, tmp_str00000C, 1001, tmp_str00000A);
ObjectSetInteger(0, tmp_str00000C, 6, Ii_009DEC);
ObjectSetInteger(0, tmp_str00000C, 1025, Ii_009DEC);
ObjectSetInteger(0, tmp_str00000C, 1035, Ii_009DEC);
ObjectSetInteger(0, tmp_str00000C, 1029, 1);
ObjectSetInteger(0, tmp_str00000C, 208, 1);
ObjectSetInteger(0, tmp_str00000C, 1018, 0);
ObjectSetInteger(0, tmp_str00000C, 100, 20);
ObjectSetInteger(0, tmp_str00000C, 9, 0);
Li_FFFFFC = 65;
double Ld_FFF69C[300];
ArrayInitialize(Ld_FFF69C, 0);
string Ls_FFE858[300];
Ld_FFE818 = 0;
Li_FFE814 = 0;
Ld_FFE808 = 0;
Li_FFE804 = 0;
Ld_FFE7F8 = 0;
Li_FFE7F4 = MagicInp;
Li_FFE7F0 = 0;
if (ArraySize(Is_009CB0) > 0) {
do {
Ls_FFE7E0 = Is_009CB0[Li_FFE7F0];
Ls_FFE7D0 = Is_009CE4[Li_FFE7F0];
if (Ls_FFE7E0 == "" || Ls_FFE7D0 == "") {
Li_FFE7F4 = Li_FFE7F4 + 1;
}
else {
Ls_FFE7C0 = "Flat";
Ld_FFE7B8 = 0;
Ld_FFE7B0 = 0;
Ld_FFE7A8 = 0;
Gi_000006 = Li_FFE7F4;
tmp_str00000D = Ls_FFE7D0;
tmp_str00000E = Ls_FFE7E0;
Gi_000007 = OrdersTotal();
if (Gi_000007 >= 0) {
do {
if (OrderSelect(Gi_000007, 0, 0) && OrderMagicNumber() == Gi_000006) {
if (OrderSymbol() == tmp_str00000E || OrderSymbol() == tmp_str00000D) {
tmp_str00000F = OrderComment();
if (StringSubstr(tmp_str00000F, 0, 2) == "LS") {
Ls_FFE7C0 = "Long Spread";
}
else {
Ls_FFE7C0 = "Short Spread";
}
if (OrderSymbol() == tmp_str00000E) {
Ld_FFE7B0 = (Ld_FFE7B0 + NormalizeDouble(OrderLots(), 2));
}
if (OrderSymbol() == tmp_str00000D) {
Ld_FFE7A8 = (Ld_FFE7A8 + NormalizeDouble(OrderLots(), 2));
}
Gd_000008 = OrderProfit();
Gd_000008 = (Gd_000008 + OrderSwap());
Ld_FFE7B8 = ((Gd_000008 + OrderCommission()) + Ld_FFE7B8);
}}
Gi_000007 = Gi_000007 - 1;
} while (Gi_000007 >= 0);
}
Ld_FFF69C[Li_FFE7F0] = Ld_FFE7B8;
tmp_str000010 = Ls_FFE7E0 + "/";
tmp_str000010 = tmp_str000010 + Ls_FFE7D0;
Ls_FFE858[Li_FFE7F0] = tmp_str000010;
if ((Ld_FFE7B8 < Ld_FFE808)) {
Ld_FFE808 = Ld_FFE7B8;
Li_FFE804 = Li_FFE7F0;
}
if ((Ld_FFE7B8 > Ld_FFE818)) {
Ld_FFE818 = Ld_FFE7B8;
Li_FFE814 = Li_FFE7F0;
}
tmp_str000010 = "Dubai";
Gi_00000A = Ii_009DF0 - 20;
Gi_00000B = Li_FFFFFC - 10;
tmp_str000011 = "";
tmp_str000012 = Is_009CA0 + "_back_";
tmp_str000012 = tmp_str000012 + Ls_FFE7E0;
tmp_str000012 = tmp_str000012 + "/";
tmp_str000012 = tmp_str000012 + Ls_FFE7D0;
ObjectCreate(0, tmp_str000012, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str000012, 102, 20);
ObjectSetInteger(0, tmp_str000012, 101, 0);
ObjectSetInteger(0, tmp_str000012, 103, Gi_00000B);
ObjectSetInteger(0, tmp_str000012, 1019, Gi_00000A);
ObjectSetInteger(0, tmp_str000012, 1020, 25);
ObjectSetString(0, tmp_str000012, 999, tmp_str000011);
ObjectSetString(0, tmp_str000012, 1001, tmp_str000010);
ObjectSetInteger(0, tmp_str000012, 6, Ii_009DE8);
ObjectSetInteger(0, tmp_str000012, 1025, Ii_009DE8);
ObjectSetInteger(0, tmp_str000012, 1035, Ii_009DE8);
ObjectSetInteger(0, tmp_str000012, 1029, 1);
ObjectSetInteger(0, tmp_str000012, 208, 1);
ObjectSetInteger(0, tmp_str000012, 1018, 0);
ObjectSetInteger(0, tmp_str000012, 100, 10);
ObjectSetInteger(0, tmp_str000012, 9, 0);
Gi_00000B = Li_FFFFFC + 2;
tmp_str000013 = Ls_FFE7E0 + "/";
tmp_str000013 = tmp_str000013 + Ls_FFE7D0;
tmp_str000014 = Is_009CA0 + "_nome_";
tmp_str000014 = tmp_str000014 + Ls_FFE7E0;
tmp_str000014 = tmp_str000014 + "/";
tmp_str000014 = tmp_str000014 + Ls_FFE7D0;
ObjectCreate(0, tmp_str000014, OBJ_LABEL, 0, 0, 0, 0, 0, 0, 0);
ObjectSetText(tmp_str000014, tmp_str000013, grandezzaFont, "Dubai", 16777215);
ObjectSet(tmp_str000014, OBJPROP_CORNER, 0);
ObjectSet(tmp_str000014, OBJPROP_XDISTANCE, 30);
ObjectSet(tmp_str000014, OBJPROP_YDISTANCE, Gi_00000B);
ObjectSetInteger(0, tmp_str000014, 1011, 1);
Gi_00000B = 0;
Gi_00000C = 1;
if (Ls_FFE7C0 == "Long Spread") {
Gi_00000E = 3329330;
}
else {
if (Ls_FFE7C0 == "Short Spread") {
Gi_00000F = 255;
}
else {
Gi_00000F = 13882323;
}
Gi_00000E = Gi_00000F;
}
Gi_00000F = Gi_00000E;
Gi_000010 = Li_FFFFFC + 2;
if (Ls_FFE7C0 == "Long Spread") {
Gi_000011 = 180;
}
else {
if (Ls_FFE7C0 == "Short Spread") {
Gi_000012 = 180;
}
else {
Gi_000012 = 200;
}
Gi_000011 = Gi_000012;
}
tmp_str000015 = Ls_FFE7C0;
tmp_str000016 = Is_009CA0 + "_tipoSpread_";
tmp_str000016 = tmp_str000016 + Ls_FFE7E0;
tmp_str000016 = tmp_str000016 + "/";
tmp_str000016 = tmp_str000016 + Ls_FFE7D0;
ObjectCreate(0, tmp_str000016, OBJ_LABEL, 0, 0, 0, 0, 0, 0, 0);
ObjectSetText(tmp_str000016, tmp_str000015, grandezzaFont, "Dubai", Gi_00000F);
ObjectSet(tmp_str000016, OBJPROP_CORNER, Gi_00000B);
ObjectSet(tmp_str000016, OBJPROP_XDISTANCE, Gi_000011);
ObjectSet(tmp_str000016, OBJPROP_YDISTANCE, Gi_000010);
ObjectSetInteger(0, tmp_str000016, 1011, Gi_00000C);
Gi_000012 = Li_FFFFFC + 2;
tmp_str000017 = "" + DoubleToString(Ld_FFE7B0, 2);
tmp_str000017 = tmp_str000017 + "/";
tmp_str000017 = tmp_str000017 + DoubleToString(Ld_FFE7A8, 2);
tmp_str000018 = Is_009CA0 + "_exp_";
tmp_str000018 = tmp_str000018 + Ls_FFE7E0;
tmp_str000018 = tmp_str000018 + "/";
tmp_str000018 = tmp_str000018 + Ls_FFE7D0;
ObjectCreate(0, tmp_str000018, OBJ_LABEL, 0, 0, 0, 0, 0, 0, 0);
ObjectSetText(tmp_str000018, tmp_str000017, grandezzaFont, "Dubai", 16777215);
ObjectSet(tmp_str000018, OBJPROP_CORNER, 0);
ObjectSet(tmp_str000018, OBJPROP_XDISTANCE, 300);
ObjectSet(tmp_str000018, OBJPROP_YDISTANCE, Gi_000012);
ObjectSetInteger(0, tmp_str000018, 1011, 1);
Gi_000012 = 0;
Gi_000013 = 1;
if ((Ld_FFE7B8 > 0)) {
Gi_000015 = 3329330;
}
else {
if ((Ld_FFE7B8 < 0)) {
Gi_000016 = 255;
}
else {
Gi_000016 = 13882323;
}
Gi_000015 = Gi_000016;
}
Gi_000016 = Li_FFFFFC + 2;
tmp_str000019 = "P/L : " + DoubleToString(Ld_FFE7B8, 2);
tmp_str00001A = Is_009CA0 + "_pl_";
tmp_str00001A = tmp_str00001A + Ls_FFE7E0;
tmp_str00001A = tmp_str00001A + "/";
tmp_str00001A = tmp_str00001A + Ls_FFE7D0;
ObjectCreate(0, tmp_str00001A, OBJ_LABEL, 0, 0, 0, 0, 0, 0, 0);
ObjectSetText(tmp_str00001A, tmp_str000019, grandezzaFont, "Dubai", Gi_000015);
ObjectSet(tmp_str00001A, OBJPROP_CORNER, Gi_000012);
ObjectSet(tmp_str00001A, OBJPROP_XDISTANCE, 400);
ObjectSet(tmp_str00001A, OBJPROP_YDISTANCE, Gi_000016);
ObjectSetInteger(0, tmp_str00001A, 1011, Gi_000013);
tmp_str00001B = "Dubai";
Gi_000016 = 0;
Gi_000017 = grandezzaFont - 1;
if ((Ld_FFE7B8 > 0)) {
Gi_000018 = 16777215;
}
else {
if ((Ld_FFE7B8 < 0)) {
Gi_000019 = 16777215;
}
else {
Gi_000019 = 0;
}
Gi_000018 = Gi_000019;
}
Gi_000019 = Gi_000018;
if ((Ld_FFE7B8 > 0)) {
Gi_00001A = 3329330;
}
else {
if ((Ld_FFE7B8 < 0)) {
Gi_00001B = 255;
}
else {
Gi_00001B = 11119017;
}
Gi_00001A = Gi_00001B;
}
Gi_00001B = Li_FFFFFC - 8;
tmp_str00001C = "Close Spread";
tmp_str00001D = Is_009CA0 + "_chiudiTutto_";
tmp_str00001D = tmp_str00001D + IntegerToString(Li_FFE7F4, 0, 32);
ObjectCreate(0, tmp_str00001D, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str00001D, 102, 490);
ObjectSetInteger(0, tmp_str00001D, 101, Gi_000016);
ObjectSetInteger(0, tmp_str00001D, 103, Gi_00001B);
ObjectSetInteger(0, tmp_str00001D, 1019, 100);
ObjectSetInteger(0, tmp_str00001D, 1020, 20);
ObjectSetString(0, tmp_str00001D, 999, tmp_str00001C);
ObjectSetString(0, tmp_str00001D, 1001, tmp_str00001B);
ObjectSetInteger(0, tmp_str00001D, 6, Gi_000019);
ObjectSetInteger(0, tmp_str00001D, 1025, Gi_00001A);
ObjectSetInteger(0, tmp_str00001D, 1035, Gi_00001A);
ObjectSetInteger(0, tmp_str00001D, 1029, 1);
ObjectSetInteger(0, tmp_str00001D, 208, 1);
ObjectSetInteger(0, tmp_str00001D, 1018, 0);
ObjectSetInteger(0, tmp_str00001D, 100, Gi_000017);
ObjectSetInteger(0, tmp_str00001D, 9, 0);
Ld_FFE7F8 = (Ld_FFE7F8 + Ld_FFE7B8);
Li_FFFFFC = Li_FFFFFC + 30;
Li_FFE7F4 = Li_FFE7F4 + 1;
}
Li_FFE7F0 = Li_FFE7F0 + 1;
} while (Li_FFE7F0 < ArraySize(Is_009CB0));
}
Gi_00001C = 0;
Gi_00001D = 1;
if ((Ld_FFE7F8 > 0)) {
Gi_00001F = 3329330;
}
else {
if ((Ld_FFE7F8 < 0)) {
Gi_000020 = 255;
}
else {
Gi_000020 = 13882323;
}
Gi_00001F = Gi_000020;
}
Gi_000020 = Li_FFFFFC + 2;
tmp_str00001E = "Totale : ";
tmp_str00001F = Is_009CA0 + "_Totale";
ObjectCreate(0, tmp_str00001F, OBJ_LABEL, 0, 0, 0, 0, 0, 0, 0);
ObjectSetText(tmp_str00001F, tmp_str00001E, grandezzaFont, "Dubai", Gi_00001F);
ObjectSet(tmp_str00001F, OBJPROP_CORNER, Gi_00001C);
ObjectSet(tmp_str00001F, OBJPROP_XDISTANCE, 150);
ObjectSet(tmp_str00001F, OBJPROP_YDISTANCE, Gi_000020);
ObjectSetInteger(0, tmp_str00001F, 1011, Gi_00001D);
Gi_000020 = 0;
Gi_000021 = 1;
if ((Ld_FFE7F8 > 0)) {
Gi_000023 = 3329330;
}
else {
if ((Ld_FFE7F8 < 0)) {
Gi_000024 = 255;
}
else {
Gi_000024 = 13882323;
}
Gi_000023 = Gi_000024;
}
Gi_000024 = Li_FFFFFC + 2;
tmp_str000020 = "P/L : " + DoubleToString(Ld_FFE7F8, 2);
tmp_str000021 = Is_009CA0 + "_plTotale";
ObjectCreate(0, tmp_str000021, OBJ_LABEL, 0, 0, 0, 0, 0, 0, 0);
ObjectSetText(tmp_str000021, tmp_str000020, grandezzaFont, "Dubai", Gi_000023);
ObjectSet(tmp_str000021, OBJPROP_CORNER, Gi_000020);
ObjectSet(tmp_str000021, OBJPROP_XDISTANCE, 200);
ObjectSet(tmp_str000021, OBJPROP_YDISTANCE, Gi_000024);
ObjectSetInteger(0, tmp_str000021, 1011, Gi_000021);
tmp_str000022 = "Dubai";
Gi_000024 = grandezzaFont - 1;
Gi_000025 = Li_FFFFFC - 8;
tmp_str000023 = "Close Gain";
tmp_str000024 = Is_009CA0 + "_chiudiGain";
ObjectCreate(0, tmp_str000024, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str000024, 102, 280);
ObjectSetInteger(0, tmp_str000024, 101, 0);
ObjectSetInteger(0, tmp_str000024, 103, Gi_000025);
ObjectSetInteger(0, tmp_str000024, 1019, 100);
ObjectSetInteger(0, tmp_str000024, 1020, 20);
ObjectSetString(0, tmp_str000024, 999, tmp_str000023);
ObjectSetString(0, tmp_str000024, 1001, tmp_str000022);
ObjectSetInteger(0, tmp_str000024, 6, 16777215);
ObjectSetInteger(0, tmp_str000024, 1025, 3329330);
ObjectSetInteger(0, tmp_str000024, 1035, 3329330);
ObjectSetInteger(0, tmp_str000024, 1029, 1);
ObjectSetInteger(0, tmp_str000024, 208, 1);
ObjectSetInteger(0, tmp_str000024, 1018, 0);
ObjectSetInteger(0, tmp_str000024, 100, Gi_000024);
ObjectSetInteger(0, tmp_str000024, 9, 0);
tmp_str000025 = "Dubai";
tmp_str000026 = "Close Loss";
tmp_str000027 = Is_009CA0 + "_chiudiLoss";
ObjectCreate(0, tmp_str000027, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str000027, 102, 385);
ObjectSetInteger(0, tmp_str000027, 101, 0);
ObjectSetInteger(0, tmp_str000027, 103, Gi_000025);
ObjectSetInteger(0, tmp_str000027, 1019, 100);
ObjectSetInteger(0, tmp_str000027, 1020, 20);
ObjectSetString(0, tmp_str000027, 999, tmp_str000026);
ObjectSetString(0, tmp_str000027, 1001, tmp_str000025);
ObjectSetInteger(0, tmp_str000027, 6, 16777215);
ObjectSetInteger(0, tmp_str000027, 1025, 255);
ObjectSetInteger(0, tmp_str000027, 1035, 255);
ObjectSetInteger(0, tmp_str000027, 1029, 1);
ObjectSetInteger(0, tmp_str000027, 208, 1);
ObjectSetInteger(0, tmp_str000027, 1018, 0);
ObjectSetInteger(0, tmp_str000027, 100, Gi_000024);
ObjectSetInteger(0, tmp_str000027, 9, 0);
tmp_str000028 = "Dubai";
Gi_000026 = 0;
if ((Ld_FFE7F8 > 0)) {
Gi_000027 = 16777215;
}
else {
if ((Ld_FFE7F8 < 0)) {
Gi_000028 = 16777215;
}
else {
Gi_000028 = 0;
}
Gi_000027 = Gi_000028;
}
Gi_000028 = Gi_000027;
if ((Ld_FFE7F8 > 0)) {
Gi_000029 = 3329330;
}
else {
if ((Ld_FFE7F8 < 0)) {
Gi_00002A = 255;
}
else {
Gi_00002A = 11119017;
}
Gi_000029 = Gi_00002A;
}
Gi_00002A = Li_FFFFFC - 8;
tmp_str000029 = "Close ALL";
tmp_str00002A = Is_009CA0 + "_chiudiTotale";
ObjectCreate(0, tmp_str00002A, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str00002A, 102, 490);
ObjectSetInteger(0, tmp_str00002A, 101, Gi_000026);
ObjectSetInteger(0, tmp_str00002A, 103, Gi_00002A);
ObjectSetInteger(0, tmp_str00002A, 1019, 100);
ObjectSetInteger(0, tmp_str00002A, 1020, 20);
ObjectSetString(0, tmp_str00002A, 999, tmp_str000029);
ObjectSetString(0, tmp_str00002A, 1001, tmp_str000028);
ObjectSetInteger(0, tmp_str00002A, 6, Gi_000028);
ObjectSetInteger(0, tmp_str00002A, 1025, Gi_000029);
ObjectSetInteger(0, tmp_str00002A, 1035, Gi_000029);
ObjectSetInteger(0, tmp_str00002A, 1029, 1);
ObjectSetInteger(0, tmp_str00002A, 208, 1);
ObjectSetInteger(0, tmp_str00002A, 1018, 0);
ObjectSetInteger(0, tmp_str00002A, 100, Gi_000024);
ObjectSetInteger(0, tmp_str00002A, 9, 0);
tmp_str00002B = IntegerToString(MagicInp, 0, 32);
tmp_str00002B = tmp_str00002B + "_newgrid";
if (GlobalVariableCheck(tmp_str00002B) != true) {
tmp_str00002C = IntegerToString(MagicInp, 0, 32);
tmp_str00002C = tmp_str00002C + "_newgrid";
GlobalVariableSet(tmp_str00002C, 1);
}
tmp_str00002D = IntegerToString(MagicInp, 0, 32);
tmp_str00002D = tmp_str00002D + "_newgrid";
Lb_FFE7A7 = GlobalVariableGet(tmp_str00002D);
tmp_str00002E = "Dubai";
Gi_00002B = 0;
Gi_00002C = grandezzaFont - 1;
Gi_00002D = 16777215;
if (Lb_FFE7A7) {
Gi_00002E = 3329330;
}
else {
Gi_00002E = 255;
}
Gi_00002F = 20;
Gi_000030 = 125;
Gi_000031 = Li_FFFFFC - 8;
Gi_000032 = 20;
if (Lb_FFE7A7) {
tmp_str00002F = "New grids allowed";
}
else {
tmp_str00002F = "New grid NOT allowed!";
}
tmp_str000030 = Is_009CA0 + "_newGrids";
ObjectCreate(0, tmp_str000030, OBJ_BUTTON, 0, 0, 0);
ObjectSetInteger(0, tmp_str000030, 102, Gi_000032);
ObjectSetInteger(0, tmp_str000030, 101, Gi_00002B);
ObjectSetInteger(0, tmp_str000030, 103, Gi_000031);
ObjectSetInteger(0, tmp_str000030, 1019, Gi_000030);
ObjectSetInteger(0, tmp_str000030, 1020, Gi_00002F);
ObjectSetString(0, tmp_str000030, 999, tmp_str00002F);
ObjectSetString(0, tmp_str000030, 1001, tmp_str00002E);
ObjectSetInteger(0, tmp_str000030, 6, Gi_00002D);
ObjectSetInteger(0, tmp_str000030, 1025, Gi_00002E);
ObjectSetInteger(0, tmp_str000030, 1035, Gi_00002E);
ObjectSetInteger(0, tmp_str000030, 1029, 1);
ObjectSetInteger(0, tmp_str000030, 208, 1);
ObjectSetInteger(0, tmp_str000030, 1018, 0);
ObjectSetInteger(0, tmp_str000030, 100, Gi_00002C);
ObjectSetInteger(0, tmp_str000030, 9, 0);
Gi_000033 = Li_FFFFFC - 15;
tmp_str000031 = Is_009CA0 + "background";
ObjectSetInteger(0, tmp_str000031, 1020, Gi_000033);
Li_FFE7A0 = 0;
if (ArraySize(Is_009CB0) > 0) {
do {
Ls_FFE790 = Is_009CB0[Li_FFE7A0];
Ls_FFE780 = Is_009CE4[Li_FFE7A0];
Ld_FFE778 = 1315860;
if ((Ld_FFF69C[Li_FFE7A0] < 0)) {
Gd_000037 = (Ld_FFF69C[Li_FFE7A0] * 120);
Li_FFE774 = (int)(Gd_000037 / Ld_FFE808);
tmp_str000032 = IntegerToString(Li_FFE774, 0, 32);
tmp_str000032 = tmp_str000032 + ",0,0";
Ld_FFE778 = StringToColor(tmp_str000032);
Gi_000037 = (int)Ld_FFE778;
tmp_str000033 = Is_009CA0 + "_back_";
tmp_str000033 = tmp_str000033 + Ls_FFE790;
tmp_str000033 = tmp_str000033 + "/";
tmp_str000033 = tmp_str000033 + Ls_FFE780;
ObjectSetInteger(0, tmp_str000033, 1025, Gi_000037);
Gi_000037 = (int)Ld_FFE778;
tmp_str000034 = Is_009CA0 + "_back_";
tmp_str000034 = tmp_str000034 + Ls_FFE790;
tmp_str000034 = tmp_str000034 + "/";
tmp_str000034 = tmp_str000034 + Ls_FFE780;
ObjectSetInteger(0, tmp_str000034, 1035, Gi_000037);
}
else {
if ((Ld_FFF69C[Li_FFE7A0] > 0)) {
Gd_000039 = (Ld_FFF69C[Li_FFE7A0] * 120);
Li_FFE770 = (int)(Gd_000039 / Ld_FFE818);
tmp_str000035 = "0," + IntegerToString(Li_FFE770, 0, 32);
tmp_str000035 = tmp_str000035 + ",0";
Ld_FFE778 = StringToColor(tmp_str000035);
Gi_000039 = (int)Ld_FFE778;
tmp_str000036 = Is_009CA0 + "_back_";
tmp_str000036 = tmp_str000036 + Ls_FFE790;
tmp_str000036 = tmp_str000036 + "/";
tmp_str000036 = tmp_str000036 + Ls_FFE780;
ObjectSetInteger(0, tmp_str000036, 1025, Gi_000039);
Gi_000039 = (int)Ld_FFE778;
tmp_str000037 = Is_009CA0 + "_back_";
tmp_str000037 = tmp_str000037 + Ls_FFE790;
tmp_str000037 = tmp_str000037 + "/";
tmp_str000037 = tmp_str000037 + Ls_FFE780;
ObjectSetIntegПоказано первые 50% кода (символов: 104137)
Открыть по тарифу
Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.
Разовая покупка файла
На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.
Зачем нужен email? После подтверждения оплаты файл сохранится в кабинете на этот email. Если аккаунта ещё нет, мы создадим его и пришлём ссылку для задания пароля. Если аккаунт уже есть, покупка добавится в него. Укажите адрес, к которому у вас есть доступ.
Чтобы оформить заказ, введите email и перейдите к оплате.