Mr_Wheeler
Active member
Code:
input Budget = 2000;
def current_price = close;
def Share_Quantity_purchase_limit = Budget / current_price;
input price = close;
input profit_target = 50.0;
AddLabel(Required_Price_Change_for_profit, Concat("Required Price Change for profit = ", Round( price * profit_target / Share_Quantity_purchase_limit )), Color.green);
I'm trying to display a label that tells you how much a price has to increase to hit profit target.