Hello,
Can someone please assist me with defining the sell criteria for this code? I would like for the criteria to sell when the profit has reached 20%. I know the criteria that I have now is not correct because my code isn't executing the sell. Here is what I have so far:
def buy = MACDHistogramCrossover("crossing type" = "Negative to Positive") is true;
def sell = profitLossMode.COST_BASIS) ;
Can someone please assist me with defining the sell criteria for this code? I would like for the criteria to sell when the profit has reached 20%. I know the criteria that I have now is not correct because my code isn't executing the sell. Here is what I have so far:
def buy = MACDHistogramCrossover("crossing type" = "Negative to Positive") is true;
def sell = profitLossMode.COST_BASIS) ;