MTF Stochastic Strategy

Strategies are published here.

Moderator: admin

Re: MTF Stochastic Strategy

Postby arfs9090 » Mon Oct 29, 2018 11:30 am

Apprentice wrote:Try this version.
MTF Stochastic Strategy_2.lua


Hi Apprentice is it possible to add some more filters on download/file.php?id=22541strategy 2 as been getting fake signals
1. A take profit and stop loss using the ATR pip indicator
2. Also a mange filter (MVA) if in profit, conformation when to the strategy is showing signs of failing.
3. Also a filter (EMA) when Price retraces to a higher t-frame EMA for the area you are looking at and be able to turn and off and the strategy would only start showing alerts when this has been achieved
Price retraces to a higher t-frame EMA on lower t-frame creating the conformation and not having waiting for higher t-frame candle to close for conformation, the strategy and would only start showing alerts only when this has been achieved. And would disable the retracement part to the strategy, when strategy started cycle, this would need to be able to change as price moves past higher t-frame as been getting fake signals noticed getting alert from strategy when the stochastic are not at overbought/sold parameters
Possible something like this strategy
download/file.php?id=6198 as in this topic
I noticed it’s at close of candle could it be to touch that area and not have to wait for higher t-frame to close
The ATR would be for TP & SL and the setting for each TP & SL able to set timeframe and over what period (how many candles to calculate).
To add this indicator into the strategy
download/file.php?id=4232
And the mange profit to exit trade before getting to TP if started to give signals of a reversal would be same the conformation to enter the trade but box would be listed exit confirm this would again have setting for all 3 timeframes and be able to disable what is not needed
If so would all that info come in the pop up box
Symbol Time Direction,Entry ,Stop loss and Take profit
Example: 5.55PM GBP/USD Short 14000 SL 14100 TP 13750
hope this clear
and would just like to say thanks what you have done already
arf
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: MTF Stochastic Strategy

Postby Apprentice » Tue Oct 30, 2018 5:04 pm

Your request is added to the development list under Id Number 4292
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MTF Stochastic Strategy

Postby arfs9090 » Wed Oct 31, 2018 5:05 am

Apprentice wrote:Your request is added to the development list under Id Number 4292

Thanks and can you please look into the stochastic part of the strategy as alerts are coming before all three t-frames are at the set parameters all in sync

Thanks again
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: MTF Stochastic Strategy

Postby Apprentice » Wed Oct 31, 2018 7:33 am

MTF Stochastic Strategy.arfs9090.lua
(82.02 KiB) Downloaded 664 times


Done, only part one (ATR stop/limit).
2. Also a mange filter (MVA) if in profit, conformation when to the strategy is showing signs of failing.

How it should work? If we already have a position and it is in a profit and there are signs of falling (how to identify them?) then we should check for the additional filter for the new signals?
3. Also a filter (EMA) when Price retraces to a higher t-frame EMA for the area you are looking at and be able to turn and off and the strategy would only start showing alerts when this has been achieved
Price retraces to a higher t-frame EMA on lower t-frame creating the conformation and not having waiting for higher t-frame candle to close for conformation, the strategy and would only start showing alerts only when this has been achieved. And would disable the retracement part to the strategy, when strategy started cycle, this would need to be able to change as price moves past higher t-frame as been getting fake signals noticed getting alert from strategy when the stochastic are not at overbought/sold parameters
Possible something like this strategy
download/file.php?id=6198 as in this topic
I noticed it’s at close of candle could it be to touch that area and not have to wait for higher t-frame to close

I'm not sure what he means by "area you are looking at". It looks like it is impossible to implement.
And the mange profit to exit trade before getting to TP if started to give signals of a reversal would be same the conformation to enter the trade but box would be listed exit confirm this would again have setting for all 3 timeframes and be able to disable what is not needed
If so would all that info come in the pop up box
Symbol Time Direction,Entry ,Stop loss and Take profit
Example: 5.55PM GBP/USD Short 14000 SL 14100 TP 13750

I need a definition of "signals of a reversal"
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MTF Stochastic Strategy

Postby arfs9090 » Wed Oct 31, 2018 10:12 am

Re; Managing a trade in profit so if the stochastic in the strategy plan is getting to a overbought in a uptrend in a current open position long and and 50 pts away from TP and same for a oversold in downtrend in a current open position short again 40pts away from TP according to parameters set in the strategy and price closes through MVA in a reverse would alert possible trend reversal and pop up box alert would say Exit confirmed

re; So if the 3 t-frames in the strategy plan was 1d & 8hr and 4hr the filter in way of EMA would retrace back to weekly 20 ema this would need to be able to change as price moves and able to set to different t-frames and different ema 's alerts to only begin once this part of the strategy was achieved and be able to turn this filter off

Can you also please look into the stochastic part of the strategy as alerts are coming before all three t-frames are at the set parameters all in sync
Re; need a definition of "signals of a reversal"
Basically the same signals to alert you to get into trade will alert you to exit trade if not reached expected TP level and reaching the overbought /sold parameters set in the strategy

are you able to do the pop up alert box as per:
pop up box
Symbol Time Direction,Entry ,Stop loss and Take profit
Example: 5.55PM GBP/USD Short 14000 SL 14100 TP 13750
and if the alert would display the potential trade opportunity on chart as in a red box for the stop loss area and a green box for the take profit according to the ATR levels set this would display to end of day.
I have downloaded new atr filter look how i expected will see how it responds to the charts
hope you understand what i am trying to achieve
thanks so much
arfs
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: MTF Stochastic Strategy

Postby Apprentice » Sat Nov 03, 2018 5:08 am

Your request is added to the development list under Id Number 4297
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MTF Stochastic Strategy

Postby arfs9090 » Sat Nov 03, 2018 8:20 am

Apprentice wrote:Your request is added to the development list under Id Number 4297


Hi Apprentice Hope this clarifies your previous response and queries dated 31/10/18

keep getting the false reversal signal, when the candle closes through it, regardless if it’s a reversal candle, for example: stochastic at overbought and previous candle closes above MVA as a buyers candle the alert for strategy comes up down trend, Is the setting to the close of the candle? If not, can it be changed to at close?

Sorry to add to the plan, but it is not recognising if it’s a buyers or sellers candle. Can you add a fast & slow EMA crossover as secondary confirmation? (this is already on the platform MA/EMA crossover, this to be added to all 3 t-frames)

Can this be done, as well of having that as a confirmation of the MVA could use the crossover of a fast and slow EMA? This again would be set to all t-frames and would be able to disable the t-frame if not required, Only when both the fast & slow EMA crossover and closed candle through the MVA and stochastics at OB/OS setting would the strategy recognise

And if the retracement (key Reversal) filter is added that would need to be achieved 1st. This would be in a parameters setting of its own (as price needs to retrace to a higher t-frame EMA) (this is on the platform MA/EMA key reversal already)

Can the stochastic only recognise a reversal trigger at OB/OS areas on each t-frame?

There are 4 conditions to the strategy which will need to appear as available options in each of the four condition boxes and should have prioritisation as listed below:
Each Condition box list of the 4 requirements For example:
Condition 1 MA crossover
Condition 2 Key reversal
Condition 3 Stochastic
Condition 4 Closed MVA
So in condition boxes 1-4 would have a drop down box giving you the 4 options and only when all 4 conditions are met would then alert pop up and calculate the potential trade

What I am trying to achieve from the ATR is for it to automatically calculate the potential trade with the information entered on the parameters of the ATR from the price the alert shows up and if can display on chart as in a red box for the stop loss area and a green box for the take profit on chart to end of day

pop up box
Symbol Time Direction, Entry, Stop loss and Take profit
Example: 5.55PM GBP/USD Short 14000 SL 14100 TP 13750

Hope you can help
Many Thanks Arf
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: MTF Stochastic Strategy

Postby Apprentice » Mon Nov 05, 2018 6:09 am

Re; Managing a trade in profit so if the stochastic in the strategy plan is getting to a overbought in a uptrend in a current open position long and and 50 pts away from TP and same for a oversold in downtrend in a current open position short again 40pts away from TP according to parameters set in the strategy and price closes through MVA in a reverse would alert possible trend reversal and pop up box alert would say Exit confirmed


But there could be 3 sets of indicators. Should we check them all? Should they all show is signal or just one? I've implemented this check for the first indicator only.

re; So if the 3 t-frames in the strategy plan was 1d & 8hr and 4hr the filter in way of EMA would retrace back to weekly 20 ema this would need to be able to change as price moves and able to set to different t-frames and different ema 's alerts to only begin once this part of the strategy was achieved and be able to turn this filter off


Should we add another EMA with its own timeframe? And when the price below/above this EMA we should filter out long/short signals?

Can you also please look into the stochastic part of the strategy as alerts are coming before all three t-frames are at the set parameters all in sync


Please, make sure that "Use This Time Frame" is turned on.

and if the alert would display the potential trade opportunity on chart as in a red box for the stop loss area and a green box for the take profit according to the ATR levels set this would display to end of day.

he strategy can't draw on the chart. We can make a dedicated indicator for drawing that.

keep getting the false reversal signal, when the candle closes through it, regardless if it’s a reversal candle, for example: stochastic at overbought and previous candle closes above MVA as a buyers candle the alert for strategy comes up down trend, Is the setting to the close of the candle? If not, can it be changed to at close?

Can you clarify it?

And if the retracement (key Reversal) filter is added that would need to be achieved 1st.


Are you talking about this indicator? viewtopic.php?f=17&t=63114

MTF Stochastic Strategy.arfs9090.lua
(94.65 KiB) Downloaded 639 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MTF Stochastic Strategy

Postby arfs9090 » Wed Nov 07, 2018 8:26 am

Hi Apprentice as my last post request i thought the key reversal would help me define a retracement area but on looking how the alert comes is basically a change in price direction (hence the strategy name) is it possible to take this condition out and just add a price alert to the strategy in its own stand-alone box and strategy to start when price has been achieved and or a higher t-frame EMA for long /Short signals if able to add price alert and higher t-frame EMA can both be in same stand - alone box

Should we add another EMA with its own timeframe? And when the price below/above this EMA we should filter out long/short signals? YES

Keep getting these error codes and then stops strategy

C:/Program Files (x86)/Candleworks/FXTS2/Strategies/Custom/MTF Stochastic Strategy.arfs9090.lua:350: attempt to index field 'ConfirmIndi' (a nil value) 07/11/2018 10:09:01

C:/Program Files (x86)/Candleworks/FXTS2/Strategies/Custom/MTF Stochastic Strategy.arfs9090.lua:357: attempt to index field 'ConfirmIndi' (a nil value) 07/11/2018 08:25:00

and the the order of conditions entered in condition list box and only then would show potential trade using atr info and display on screen
sorry for all the confusion on my explanations on my part and not checking what the key-reversal strategy done before asking you to add (my bad)


Many thanks Arf
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: MTF Stochastic Strategy

Postby Apprentice » Sun Nov 11, 2018 5:44 am

Your request is added to the development list under Id Number 4309
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 10 guests