Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 03:02:26 +0000



Post From: Long Entry and Short Exit | Short Entry and Long Exit

[2024-07-06 04:35:39]
Sawtooth - Posts: 4118
I'll ask again: what formula is in K2 and M2?
And why don't use use K1 and M1 as I suggest?

You have not shared enough pertinent information for me to properly resolve this for you.

Also, you don't need to use the IF function unless you are returning a value:
This...:
=IF(AND(ID0.SG4@3 > ID0.SG1@3, ID0.SG5@3 > AVERAGE(ID0.SG5@4:ID0.SG5@23) * 1.5, ID4.SG1@3 > AVERAGE(ID4.SG1@4:ID4.SG1@23), ID5.SG1@3 > ID6.SG1@3, K@2 = 0, M@2 = 0), 1, IF(AND(M@2 = 1, ID0.SG4@3 <= ID0.SG1@3 * 0.94), 1, 0))
...can be written as:
=OR(AND(E3 > B3, F3 > AVERAGE(F4:F23) * 1.5, ID4.SG1@3 > AVERAGE(ID4.SG1@4:ID4.SG1@23), ID5.SG1@3 > ID6.SG1@3, K2 = 0, M2 = 0), AND(M2 = 1, E3 <= B3 * 0.94))

This...:
=IF(AND(ID0.SG4@3 < ID0.SG1@3, ID0.SG5@3 > AVERAGE(ID0.SG5@4:ID0.SG5@23) * 1.5, ID4.SG1@3 > AVERAGE(ID4.SG1@4:ID4.SG1@23), ID5.SG1@3 < ID6.SG1@3, K@2 = 0, M@2 = 0), 1, IF(AND(K@2 = 1, ID0.SG4@3 >= ID0.SG1@3 * 1.05), 1, 0))
...can be written as:
=OR(AND(E3 < B3, F3 > AVERAGE(F4:F23) * 1.5, ID4.SG1@3 > AVERAGE(ID4.SG1@4:ID4.SG1@23), ID5.SG1@3 < ID6.SG1@3, K2 = 0, M2 = 0), AND(K2 = 1, E3 >= B3 * 1.05))

Is there any ways OCO attached profit taker and stop loss adjust price dynamically?
You can use the Trade Management by Study study, referencing a Formula Column's subgraph that has a formula that returns a dynamic price.
Attached Orders: Study Controlled Targets and Stops
Date Time Of Last Edit: 2024-07-06 21:02:10