MTF Moving Average Cross Over

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

MTF Moving Average Cross Over

Postby arfs9090 » Sun Dec 02, 2018 10:27 am

So thinks having a strategy set up for buy signals and same strategy set up for sell signals but would have two strategy running at all times, was wondering if you can help its based on 3 t-frames and 3 separate moving averages as conformation as shown below

For sell signals
Price to be below MVA
Fast crosses below the Slow EMA
Price to closed lower then EMA


For buy signals
Price to be above MVA
Fast crosses above the Slow EMA
Price to closed higher then EMA


And when all 3 conditions are made on all 3 t-frames then would get signal
Signals would be generated from the close of the candle when conditions are met

So thinks in the parameter box would need to be asked
1. T-frame (selection of all t-frame 1min to highest)
2. BID / ASK
3. ABOVE /BELOW (Selection of the moving averages)
4. Number of periods
5. ABOVE /BELOW (Selection of the moving averages)
6. Number of periods
7. ABOVE /BELOW (Selection of the moving averages)
8. Number of periods
This would be repeated on the other two t-frames in the strategy plan.

Hope you guys can help with my request
Arfs


So would need a selection of x2 set of MA crossing with also options above or below
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: MTF Moving Average Cross Over

Postby Apprentice » Mon Dec 03, 2018 5:43 am

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


Re: MTF Moving Average Cross Over

Postby arfs9090 » Tue Dec 04, 2018 6:40 am



Just put new strategy into platform and noticed few things
1. Need another Moving average (EMA) closed through to each t-frame also not sure if the strategy works out from being on Bid or Ask on 1st MA if price need to be above or below the MVA, and on 2nd fast crosses above/below slow (EMA) and on 3rd price closes above /below so we need 3 separate conformations
1.Price Above /Below
2. Fast crosses Slow Above/Below
3.Price closed Above /below

keep getting Error code then stops strategy
Symbol Strategy/Indicator Message Time
US30 MTF MOVING AVERAGE CROSS OVER STRATEGY(US30) C:/Program Files (x86)/Candleworks/FXTS2/Strategies/Custom/MTF Moving Average Cross Over Strategy.lua:1049: attempt to index global 'Source' (a nil value) 04/12/2018 09:29:27


Not sure if the ATR part is set up correctly but thinks if we could take out all the ATR part and just have the 3 moving averages part and if we can put in a drop down box Above /below .There was some I did want to add but was going to wait till we manage to get strategy configured and work but will run past you and see what you thinks.

On 2 of the t-frame was Stochastic instead of when gets to a % known as OB/OS would simply be when the K line crosses below the D line for sell signal and for buy signals would be when K line crosses above D line, would need to be able to set the stochastics to settings required.
So thinks in the parameter box would need to be asked only need to be on two of the t-frames
%K Period (to be able to set setting)
%D Period (to be able to set setting)
%D Slowing Period (to be able to set setting)
Smoothing method for % K (Selection of MA)
Smoothing method for % D (Selection of MA)
K line crosses D line (Above/ Below)

With regards to the ATR would it be possible when we do the indicator to draw on a chart possible to add the ATR for TP and SL I have an idea can post at later date

Hope you can help
Ps: thanks so much for all the work you have done already
Many Thanks Arfs
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Re: MTF Moving Average Cross Over

Postby Apprentice » Thu Dec 06, 2018 5:57 am

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


Re: MTF Moving Average Cross Over

Postby arfs9090 » Mon Dec 10, 2018 6:34 am

Hi Apprentice and development team
Got the strategy to give me signals, but as the strategy is based on a trend continuation on the t-frames and moving averages in the parameter’s was getting opposite signals to the trend, on looking at the charts when alert was generated look like signal was created from lowest t-frame in plan and other two t-frames was not considered and seem to only get buy signals when I have 2 strategies running one for longs and one for shorts and if anything should have been creating a sell signal. If we can add to all three moving averages conformation on above /below

For sell signals
1st Price to be below MVA (you guys already added)
2nd Fast crosses below the Slow EMA (Above /Below ) if you can add
3rd Price to closed lower then EMA (Closed Above/Below) if you can add


For buy signals
1st Price to be above MVA (you guys already added)
2nd Fast crosses above the Slow EMA (Above /Below ) if you can add
3rd Price to closed higher then EMA (Closed Above/Below) if you can add


And re ATR if you can add a disable from strategy so use if needed and if you can add the stochastic k line crosses the D line for two of t-frames again if we can have in parameter’s cross above for longs and below for shorts

On 2 of the t-frame was Stochastic instead of when gets to a % known as OB/OS would simply be when the K line crosses below the D line for sell signal and for buy signals would be when K line crosses above D line, would need to be able to set the stochastics to settings required.
So thinks in the parameter box would need to be asked only need to be on two of the t-frames
%K Period (to be able to set setting)
%D Period (to be able to set setting)
%D Slowing Period (to be able to set setting)
Smoothing method for % K (Selection of MA)
Smoothing method for % D (Selection of MA)
K line crosses D line (Above/ Below)

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

Re: MTF Moving Average Cross Over

Postby Apprentice » Wed Dec 12, 2018 5:30 am

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

Re: MTF Moving Average Cross Over

Postby Apprentice » Wed Dec 12, 2018 2:00 pm

MTF Moving Average Cross Over.lua
(104.74 KiB) Downloaded 527 times

The description is too mysterious. I'm not sure what you mean by
removing ATR (it's already optional). And it looks you ask for a
universal strategy constructor. There are too many options.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MTF Moving Average Cross Over

Postby arfs9090 » Mon Dec 17, 2018 10:23 am

So the strategy parameters are looking how I expected. Not getting any signals at all.
The way I am expecting the signals to be generated is when there is a pullback and the higher t-frames in the plan are still complying with strategy, The lowest t-frame created SSD cross over and in conjunction with all 3 MA conditions met
For this example is Short
1.SSD K line crosses below D line 2. MVA below 3.Fast crosses below Slow
4.Price is below EMA
(All 3 MA condition’s on higher t –frames the & SSD conditions are still in play)
Then once the lower t-frame has created the SSD cross over K line below D line and in conjunction with MA conditions met would trigger a signal for SELL signal and this would be repeated on the SSD cross over and all of the MA conditions was met until any of the t-frames was not complying with the condition’s in the plan.

So essentially we need a SSD cross over on a lower t-frame to generate a signal.

The 3 MA conditions need to be in play 1st on the higher t-frames in strategy plan, then lower t-frame would only create signal after the SSD cross over in conjunction with the 3 MA conditions are met on lowest t-frame.
Just to be clear if the higher t-frames created a SSD cross over against trade and trend whilst in retracement and the higher t-frame candle closed even if lower t-frame created SSD cross over and complied with all 3 MA condition’s no signal would generate as higher t-frame SSD would show SSD cross over against direction of trade and trend
Hope you guys can help finish this for me as so close
arf
arfs9090
FXCodeBase: Initiate
 
Posts: 103
Joined: Fri Aug 11, 2017 11:29 am

Next

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 12 guests