By default it draws first 300 Wingding characters/arrow codes, which is about all of them I think (they start repeating at some point).
Tooltip (the little pop-up on hovering mouse pointer over the arrow) shows arrow code.
Script intended to visualize all possible looks for arrow indicator plots for an easier choice, it doesn’t have indicating/advising/trading purpose by itself.
//+------------------------------------------------------------------+
//| Стрелки.mq5 |
//+------------------------------------------------------------------+
#property copyright "Copyright 2017, МегаКурец Software Corp."
#property script_show_inputs
input int ПървиНомер = 1;
input int ПоследенНомер = 300;
input color Цвят = clrGreen;
input int Размер = 5;
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
datetime Време = TimeCurrent();
MqlTick дъ_ласт_тик;
SymbolInfoTick(NULL,дъ_ласт_тик);
double Цена = дъ_ласт_тик.bid;
for (int хой = ПървиНомер; хой <=ПоследенНомер; хой++)
{
ObjectDelete(0,"Стрелка №"+IntegerToString(хой));
}
for (int кор = ПървиНомер; кор <=ПоследенНомер; кор++)
{
ObjectCreate(0,"Стрелка №"+IntegerToString(кор),OBJ_ARROW,0,Време,(Цена-0.00025*ПоследенНомер+0.0005*кор*Цена));
ObjectSetInteger(0,"Стрелка №"+IntegerToString(кор),OBJPROP_ARROWCODE,кор);
ObjectSetInteger(0,"Стрелка №"+IntegerToString(кор),OBJPROP_COLOR,Цвят);
ObjectSetInteger(0,"Стрелка №"+IntegerToString(кор),OBJPROP_WIDTH,Размер);
}
}
//+------------------------------------------------------------------+
Clearing script:
//+------------------------------------------------------------------+
//| Стрелки-Почистване.mq5 |
//+------------------------------------------------------------------+
#property copyright "Copyright 2017, МегаКурец Software Corp."
#property script_show_inputs
input int ПървиНомер = 1;
input int ПоследенНомер = 300;
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
for (int пръц = ПървиНомер; пръц <=ПоследенНомер; пръц++)
{
ObjectDelete(0,"Стрелка №"+IntegerToString(пръц));
}
}
//+------------------------------------------------------------------+