Forex Factory (https://www.forexfactory.com/forum.php)
-   Trading Journals (https://www.forexfactory.com/forumdisplay.php?f=49)
-   -   LazyTMA trading (https://www.forexfactory.com/showthread.php?t=922947)

SwingMan Jun 10, 2019 12:18pm | Post# 1

LazyTMA trading
 
4 Attachment(s)
This thread is started because I do not want to disturb the threads of other valued members.
Here I will post some versions of the LazyTMA files.

The current versions are posted here, especially if I find bugs in the code ...
Attachment 3357681
Attachment 3357682
Here the source code:
Attachment 3394906
In #Post 11 - a first bug corrected...
smLazyTMA Bands_v2.1.mq4

SwingMan Jun 10, 2019 12:30pm | Post# 2

1 Attachment(s)
... I love Median Renko on the DAX
Very nice!
I'm not a trader, but just for more of your tests you can also try the indicator I posted earlier.
- (for Long) Close under LowerBand1
- Histogram changes color from dark red to light red
- Entry above the high of the previous bar
- Trailingstop on Lower-Band1 or Band2

Click to Enlarge

Name: GER30M1.png
Size: 40 KB
This "smLazyTMA Bands" is a TMA version in which instead of ATR the standard deviation is used.
The multipliers are the mathematical 1,2,3,4 sequences.

The indicator "smSmallWick AvgSlopeLog" is:
logarithm of the slope of the moving average.

Moving average: SMA, 3, shift 1, on typical price (pivot).

Important is that the change of the histograms colors show a change of the second derivative of the slope.
The filter factor is the treshold on the sorted values of the slope values.

robots4me Jun 10, 2019 2:27pm | Post# 3

@Swingman -- Sir, it is about time!! I am so glad to see your new thread.

I'm subscribed!!

lemercenaire Jun 10, 2019 2:42pm | Post# 4

Nice one, SwingMan, glad to be on board for the journey!

earlroy63 Jun 10, 2019 2:47pm | Post# 5

I'm new, so what is the rule for Short? May seem obvious, but if it is stated it will remove any doubt or further questions.

Roy

Nih98 Jun 10, 2019 2:48pm | Post# 6

May God Bless You and Your family and Friends (including me of course) with Healthiness, Happiness, Wealthiness, and Strong Faith forever..

Happy Coding Sir
NIH

francisakz Jun 10, 2019 3:39pm | Post# 7

Awesome man, swing man you are a Genius.

SwingMan Jun 10, 2019 4:02pm | Post# 8

Hi all,

the "smLazyTMA Bands_v2" has a small bug because the bands are not drawn properly.

I did the programming on the weekend and only with live data have found this.
A quick fix is to limit the number of bars e.g. to 2000. Maybe I or someone will find a more elegant solution.

nigpig Jun 10, 2019 4:15pm | Post# 9

Hi SwingMan. I have subscribed to this interesting thread.

If you do any more work on smSmallWick indi, would you make available more values so the diminishing bar can be read through iCustom? Even better a status value showing which bar is being displayed.

SwingMan Jun 10, 2019 4:32pm | Post# 10

...would you make available more values so the diminishing bar can be read through iCustom?
In principle, I hate to change the indicators,

but you have in "Data Window" everything you need for iCustom:
- 1. the values "Slope-Average3"
- 2/3. the filter values "SlopeValuesUP and DN"

SwingMan Jun 10, 2019 4:44pm | Post# 11

1 Attachment(s)
Hi all, the "smLazyTMA Bands_v2" has a small bug because the bands are not drawn properly.
I did the programming on the weekend and only with live data have found this.
A quick fix is to limit the number of bars e.g. to 2000. Maybe I or someone will find a more elegant solution.
Here is the corrected version so you can work with them.

For the right and elegant solution I still have to test...
smLazyTMA Bands_v2.1.mq4

Pip-Miner Jun 10, 2019 6:54pm | Post# 12

{quote} Here is the corrected version so you can work with them. For the right and elegant solution I still have to test... {file}
Well done SwingMan, best TMA indicator seen so far. Nice and clear , very easy to trade , not cluttered with too many lines, the use of standard deviation. Also you share the mql4 and on top of all this a true gentleman and not rude.

fxomo Jun 10, 2019 7:18pm | Post# 13

{quote} Here is the corrected version so you can work with them. For the right and elegant solution I still have to test... {file}
Thank you very much for this thread/indicators. I actually find version2 quite OK but the corrected version 2.1 draws only a short centerline only.

clemmo17 Jun 10, 2019 7:32pm | Post# 14

Wonderful, maestro! I will construct such a system with this. May I ask what is the indicator on the bottom?

Xxyy Jun 10, 2019 8:58pm | Post# 15

{quote} Thank you very much for this thread/indicators. I actually find version2 quite OK but the corrected version 2.1 draws only a short centerline only.
The same for me.

SwingMan Jun 10, 2019 9:06pm | Post# 16

...May I ask what is the indicator on the bottom?
The explanation have you in the name:
logarithm of the slope of the moving average.

Moving average: SMA, 3, shift 1, on typical price (pivot).

Important is that the change of the histograms colors show a change of the second derivative of the slope.
The filter factor is the treshold on the sorted values of the slope values.

aPhong Jun 10, 2019 10:04pm | Post# 17

Wait!!!! here I am
Hello Master SwingMan & Nih98! & all other great mems
sm, you just made a very nice indi Sir, cant wait to see how to trade with your indis <3.

...btw Could you guys please explain the indi "smSmallWick AvgSlopeLog" more visually & how to read it's changes? ... I know that Master SM explained it in post #2 & # 16.. but my stupid, it sounds technically to me & Im new to coding mql, just few months ... so I cant not get it without looking into the source code!
Thanks
Cheers,

SwingMan Jun 11, 2019 5:26am | Post# 18

2 Attachment(s)
New indicator "smLazyTMA Signals_v1"

Here is a simple signal indicator, only for lazy traders:
- in trend direction of TMA will be generated signals when the candles cross the TMA bands.

Lazy Trading idea:
- Entry at next candle.
- Lots calculation with 1% risk for SL on band 4.
- Exit if TMA changes the direction (color)
Click to Enlarge

Name: NZDJPYH1.png
Size: 122 KB
smLazyTMA Signals_v1.mq4

SwingMan Jun 11, 2019 5:58am | Post# 19

Strange...

When visually checking the new indicator on all pairs and all time frames (M15..D1), I have not seen a single loss ... (maybe one or two very small).

Maybe someone else can confirm or deny that.

aPhong Jun 11, 2019 5:59am | Post# 20

New indicator "smLazyTMA Signals_v1" Here is a simple signal indicator, only for lazy traders: - in trend direction of TMA will be generated signals when the candles cross the TMA bands. Lazy Trading idea: - Entry at next candle. - Lots calculation with 1% risk for SL on band 4. - Exit if TMA changes the direction (color) {image} {file}
Thank you so much Master!
Have a nice day! im ... proud to be one of your lazy traders


© Forex Factory