Bernard Fiagbe
Bernard Fiagbe
  • Liaison Office em Kaldimarket
  • Gana
  • 24
Liaison Office em Kaldimarket
Bernard Fiagbe
Bernard Fiagbe
I have a challenge, which says

'support' - arrays are passed by reference only

Can any one assist me please?


// Function to draw arrows
void DrawArrows(double support[], double resistance[]) {
for (int i = 0; i < 50; i++) { // Use defined size directly
if (support[i] > 0) {
string arrowUp = "ArrowUp_" + IntegerToString(i);
ObjectCreate(0, arrowUp, OBJ_ARROW, 0, Time[i], support[i]);
ObjectSetInteger(0, arrowUp, OBJPROP_ARROWCODE, 233);
ObjectSetInteger(0, arrowUp, OBJPROP_COLOR, clrGreen);
}
Bernard Fiagbe
Registrado no site MQL5.community