API Support wrote:
See the
onBar method in:
https://www.dukascopy.com/wiki/#Create_Alert/Play_sound_on_indicator_trend_changeChange the optional input parameters and indicator from
t3 to
linearRegAngle.
hi,
I make test this variant:
private static int LAST = 2;
private static int PREV = 1;
private static int SCND_TO_LAST = 0;
double[] t = indicators.linearRegAngle(Instrument.EURUSD, Period.ONE_HOUR,OfferSide.BID,IIndicators.AppliedPrice.CLOSE, 14, filter,3,bidBar.getTime(), 0);
if( t[PREV] > t[LAST] && t[SCND_TO_LAST] < t[PREV] ){
sellSign= true;
if( t[PREV] < t[LAST] && t[SCND_TO_LAST] > t[PREV]){
buySign = true;
But not open position:
please see screenshot
it defines color?
I want to have signal from change color
it is possible ?
thank you