New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
premature closure of swing trade #399
Comments
There are a few ways how trades can be closed automatically.
To identify how the trade was closed, you should look at the trade's closure comment. |
Which Strategy is being used on daily timeframe? |
There are no strategies set on daily timeframe. Not yet. |
Is there a code for it? |
Convert this pine script to C Lang // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ //@Version=5 r = high<low[2]-(high[2]-low[2]) ass= ta.crossover(close,ta.valuewhen(r,high[2],o)) bass= ta.crossunder(close,ta.valuewhen(r,high[2],o)) ass2= ta.crossover(close,math.max(ta.valuewhen(r2,high[3],o), ta.valuewhen(r2,high[4],o))) bass2= ta.crossunder(close,math.max(ta.valuewhen(r2,high[3],o), ta.valuewhen(r2,high[4],o))) akk = ta.crossunder(close,ta.valuewhen(s,low[2],o)) akk2 = ta.crossunder(close,math.min(ta.valuewhen(s2,low[3],o),ta.valuewhen(s2,low[4],o))) bakk = ta.crossover(close,ta.valuewhen(s,low[2],o)) bakk2 = ta.crossover(close,math.min(ta.valuewhen(s2,low[3],o),ta.valuewhen(s2,low[4],o))) |
SL is set after some period of time, depending on the strategy. You can set max risk reward based on the Close loss/profit stops inputs which is going to be tracked by EA (not visible). |
I ran the EA on daily timeframe GBPUSD and it was able to spot swing trade for $20 to $200 risk reward. The trade was closed prematurely at $2.
I think its better once the trade is opened and the risk reward is set to let it play out before planning new trade.
Therefore the trade close conditions need to be removed. The risk-reward is sufficient for professional money management and controlled loss.
Where is close conditions file located I can have a look.
The text was updated successfully, but these errors were encountered: