buongiorno chi sa come si fa ad inserire in modo corretto la funzione che calcola il profit e stop loss sulla barra di set up? mi succede che ogni volta che entra a mercato, se si forma una nuova barra di set up si aggiorna il profit e stop loss mi spiego meglio, le condizioni sono: grafico orario, alle h 9 entro sul massimo della barra oraria delle ore 8, metto lo stop loss al minimo della barra delle h 8, il profit due volte sopra il max della barra delle h 8 del valore di stop loss : profitbuy =high+(2*(high – low)) profitbuy =high+(2*(high – low)) if (barra set up) then profitbuy = high+(2*(high – low)) endif if (barra set up) then stoptrade = low endif grazie spero sia stato chiaro paolo