Whatever the strategy might be, in whatever timeframe, I am trying to focus on conditions that should always be included in the code for entering or exiting LONG. The purpose is obviously to increase the percentage of winning trades and gain without lower the number of trades. Numbers must of course be tuned in based on time interval and other factors. Here are a few. Do add other conditions as well, thank you!
Enter: RSI[10](close)< 66 and CCI[6](close) < 190 and (TEMA[2]>low)[3] and BULL
Exit: SmStoS<SmStoS[2] and BEAR
// Detection of a bullish engulfing line
Condition1 = Close[1] < Open[1]
Condition2 = Open < Close[1]
Condition3 = Close > Open[1]
Condition4 = Open < Close
BULL=Condition1[2] or Condition2[2] or Condition3[2] or Condition4[1]
// Detection of a bearish engulfing line
Condition5 = Close[1] > Open[1]
Condition6 = Close < Open
Condition7 = Open > Close[1]
Condition8 = Close < Open[1]
BEAR=Condition5[4] or Condition6[4] or Condition7[4] or Condition8[2]
Great idea soulintact!
If popular and plenty of snippets added by members then you could ask for the post could be moved to become a sticky!?
I have long thought we may all be reinventing the wheel?
This thread could become a source of existing wheel designs / snippets which evolve into even better snippets!? 🙂
What do you mean, exactly?
SmStoS<SmStoS[2]
I get an error message from PRT when I use this 1:1
kind
@GraHal, your idea of a specific topic devoted to functions/snippets of code is welcome.
Post it a suggestion for improvement of this forum.
@GraHal, your idea of a specific topic devoted to functions/snippets of code is welcome. Post it a suggestion for improvement of this forum.
I already posted a suggestion that we could have a searchable library of code snippets. Nicolas seemed quite keen on the idea but as we all know he is a very busy chap! Maybe a thread with code snippets could be a good starting point to see how useful or popular it is.
Yes I agree and thought the same Vonasi. I had also suggested a searchable / sortable Library, but also felt guilty putting more work onto Nicolas.
As you say Vonasi, my Thread will serve as a trial. The google sheet may be an easy way to achieve a sortable function but does require users to enter brief details.
Do you think the Thread I started here GraHal wrote: is logical under Trading Discussion Forum or would be better / used by more under ProOrder Support Forum?
Cheers
GraHal
Do you think the Thread I started here GraHal wrote: is logical under Trading Discussion Forum or would be better / used by more under ProOrder Support Forum?
I think that ProOrder Support is more appropriate as they are code snippets for writing strategies more than they are general discussions.