Forum

ObjectSetText not working anymore.

#property copyright "Copyright 2015, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict double winrate= 0 ; double totaltr= 0 ; double pf= 0 ; double profit= 0 ; double balance= 0 ; int ordershistory; double profitordin[ 1000 ]; int

Indicator problem

So i'm trying to make a new indicator with a histogram that has 2 values. 1 and -1. It is supposed to increase the outcome of trades if you only trade with the trend that's shown by the indicator. Now the problem with my indicator is that if the whole subwindow has a value of 1 or -1 the indicator

int array not working

int c[]; c[1]=1; print(c[1]); it prints c[1] as being zero