Support Board
Date/Time: Sat, 23 Nov 2024 02:00:37 +0000
Post From: Make it impossible to close a trade that last less than 10 secondes
[2024-09-15 06:43:14] |
User61168 - Posts: 403 |
simple solution via simple alert.... in continuation to my previous post on how to flatten trades posted here Percentage based stop and take profit in ASCIL | Post: 394626 just add this simple alert formula in the flatten study and run it on a 1-second chart. AND( ID9.SG1=ID9.SG1[-1],ID9.SG1=ID9.SG1[-2],ID9.SG1=ID9.SG1[-3],ID9.SG1=ID9.SG1[-4],ID9.SG1=ID9.SG1[-5],ID9.SG1=ID9.SG1[-6],ID9.SG1=ID9.SG1[-7],ID9.SG1=ID9.SG1[-8],ID9.SG1=ID9.SG1[-9],ID9.SG1=ID9.SG1[-10] ,OR(AND(ID7.SG1>0,C>=ID9.SG1+xx),AND(ID7.SG1<0,C<=ID9.SG1-xx),AND(ID7.SG1>0,C<=ID9.SG1-yy),AND(ID7.SG1<0,C>=ID9.SG1+yy) ) ) ID7 = position qty ID9 = Average position price xx = TP in points yy = SL in points This will trigger the exit condition after the 10th 1-second bar when average position line is at the same price. Remove attached order on the trade ticket or move it far from current price. below 10 seconds which my account rules forbid it I am curious if this is enforced by your broker? If it is, please share which one
Date Time Of Last Edit: 2024-09-15 06:44:50
|