I would like to risk a fixed dollar amount instead of a fixed number of shares. The first definition of Quantity works fine, but not the second or third. The buy and sell arrows do appear correctly on the chart, but nothing appears in the FPL window. Does anyone know what I'm doing wrong?
Thanks,
Cliff
Thanks,
Cliff
Code:
input Dollars = 5000;
def EntryPrice = EntryPrice();
#def Quantity = 100; # This works
#def Quantity = Dollars / EntryPrice; # This does not give any info in the FPL window
def Quantity = Round(Dollars / EntryPrice, 0); # This does not give any info in the FPL window
Last edited: