Posted By: marr
TakeProfit invalid value on large distance - 02/26/21 09:43
I have a formula where I set TakeProfit to 200% of entry price
```
TakeProfit = priceClose() * ((target/100.0)+1.0); // 200% target
enterLong();
```
when i run this live i get this error `Error 010: Invalid TVKBUSD TakeProfit: -213016833
while if i print the value of the formula it returns the right number
how do i resove this issue?
```
TakeProfit = priceClose() * ((target/100.0)+1.0); // 200% target
enterLong();
```
when i run this live i get this error `Error 010: Invalid TVKBUSD TakeProfit: -213016833
while if i print the value of the formula it returns the right number
how do i resove this issue?