Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 19:53:23 +0000



Post From: Referencing new bar for closing position in SpreadsheetStudy for Auto trading

[2015-04-30 21:10:15]
User81805 - Posts: 9
But if I want to use more of a take-profit/stop-loss for each bar, using the difference in values in E3 and B3, how should the formula look?

For example: The symbol is EURUSD, the range per bar is set to 0.00500. I want my short-position that opened when E3<B3, to close out to a profit if the pricedifference from B3 to E3 is -0.00200, and take the loss if the pricedifference from B3 to E3 is +0.00175. The same for a long-position, just the opposite.

How should this formula look?