Bernard Fiagbe / Profile
Liaison Office
at
Kaldimarket
Friends
5
Requests
Outgoing
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);
}
'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
Added topic My indicator is not displaying on Chart any idea the missing component?
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Yellow #property indicator_color2 Yellow #property indicator_width1 2 #property indicator_width2 2 // Input parameters input int RsiPeriod = 14 ; // Indicator
: