Quick one: Function for : Draw Up Arrow needs to be corrected as the Arrow is not drawn below the CANDLE

The function needs to be corrected, please see below (exported result):



void sqDrawUpArrow(int shift) {
   string name;
   StringConcatenate(name, "Arrow_", MathRand());


   ObjectCreate(ChartID(), name, OBJ_ARROW, 0, getTime(shift), getHigh(shift) - 20 * _Point); //draw an up arrow
   ObjectSetInteger(ChartID(), name, OBJPROP_STYLE, STYLE_SOLID);
   ObjectSetInteger(ChartID(), name, OBJPROP_ARROWCODE, OBJ_ARROW_UP);
   ObjectSetInteger(ChartID(), name, OBJPROP_COLOR, clrGreen);
}


SHOULD BE: 
   ObjectCreate(ChartID(), name, OBJ_ARROW, 0, getTime(shift), getLow(shift) - 20 * _Point); //draw an up arrow    <- it can be considered also to be more than 20 as DownArrow has 140




Please see the PrintScreen Attached (Created in StrategyTester) - Green Arrows are presented ON THE Candles and not Below





Attachments
AlgoWizard_UpArrow.jpg
(31.59 KiB)
  • Votes +1
  • Project AlgoWizard
  • Type Bug
  • Status Fixed
  • Priority Normal

History

p
#1

pitro

30.04.2020 17:02

Task created

TB
#2

Tomas Brynda

04.05.2020 09:08

Status changed from New to Fixed

Dw
#3

Diwi

16.07.2020 10:15
Voted for this task.

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please