I’m trying to code a manual entry price point to test an idea. I’ve used valuewhen but not successful. Can this be done?
Thanks Peter
Condition = Ref(close,-1) ==10);// entry price condition
Entry = valuewhen(condition,close,-1);
buysetup = entry;
Le = ref(buysetup,-1) and not OnLastTwoBarsOfDelistedSecurity;
Leprice = open;