hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
1/4/24 ...........

i am off to a terrible start...... my fault......

first few posts will be disorganized......

a script that calculates a set percentage return over a period of time.......

an example of multi time frame analysis.....

the 10 and 20 ma's are commonly used in trading......

imagine trades relating to the 10(smma) crossing the 20(smma) in multi timeframe fashion...... an idea that satisfies rule number 1......

my original thoughts were to start 1/1/24 with a 400$ oanda account, 50 to 1 leverage..... an amount that satisfies rule number 6...... then possibly add 100$ per week......

the indicator below works best on timeframes 15 and below...... the top row represents the 10 relation to the 20 on the 30 minute chart...... second row is the 60, followed by the 240 and 1440.......

in the audusd current chart, the 30, 60 and 240 all have their 10 below the 20...... only the 1440 has 10 above......

my plan was to take lower time frame sells when all 4 are red, buys when all 4 are lime...... within reason...... and subject to change.....

my trade size will be limited to 0.01 lots with occasionally 0.02...... margin required is the factor here......

only the eurusd, gbpusd, audusd and nzdusd would be traded........ this might change to 4 completely unrelated pairs......

there is a lot going on in that chart..... will explain later......

all code will be posted...... with mq4......h
//-----

audusd-m5-oanda-division1-2024.png
 

Attachments

  • 4 10 20 smma 30 60 240 1440.ex4
    14.3 KB · Views: 0
  • 4 10 20 smma 30 60 240 1440.mq4
    5.6 KB · Views: 0

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
imagine an ea that creates itself......

such as suppose all macds on the minute thru the 1440 were falling, it might place only sell related buttons on the chart......

or, if all stochastics(12,3,10) were rising, it might place only buy related buttons.....

or if, all sma(50)'s were falling except for the 240, it might place a sellscalp button......

take some time and expand that thought.......
//-----

in the chart below, the squares on the right hand side relate to the pairs, eurusd, gbpusd, audusd and nzdusd...... birds of a feather.......

in the top most 16 , the first horizontal row is the eurusd macd above or below the 0 line on the 1 to 1440 timeframes..... second row, gbpusd, third audusd and then nzdusd......

the principle should be clear..... at a glance you could see on each pair where its macd was on each timeframe......

the next group of 16 is each pairs 10(smma) relative to it's 20(smma)......

and so on....... you can see at a glance, if birds of a feather flock together.....

and if, north or south............h
//------

audusd-m30-oanda-division1-ea.png
 

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
the blue rectangle is an idea born from the asia session breakout plan..... my version was originally coded by hapalkos in 2007...... we have all recoded it to suit our needs......

using my default settings, it takes the high and low of the first 5 hours of oanda's trading day...... your brokers trading day might be different......

oanda, 0:00 is 5pm est...... new york time.......

again, using my settings, it extends the box to a point were new forex trades should be few.... forex volume slows around londons close....... this is a time to knock it off type reminder......

that box will of course vary in depth everyday and on every pair......

on larger accounts, it seems to help me, if the moving averages are falling and the price has risen above the box, to place sellstops within the box.... i usually place 5 equally spaced inside......

that will not be possible in this 2024 account due to small balance...... once/if the balance is over 5k, maybe......

under certain conditions the ea will create a sellstop asia button to do just that......h
//------

nzdusd-m30-oanda-division1.png
 

Attachments

  • Breakout_PANCA_EAGLE.ex4
    14.1 KB · Views: 0
  • Breakout_PANCA_EAGLE.mq4
    6.8 KB · Views: 1

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
whether 0 automation, partial automation or full automation, metatrader can make life easier...... metatrader satisfies rule number 3........

metatrader can reduce long drawn out complex rules to colors or words in seconds......

for the most part we quickly memorize common pairs symbol specs like margin required, pip value, contract size and such..... knowing the symbols market info and symbol info double help......

if we bounce around on gold, silver, sp500 and forex with out proper fore thought, it will end up not good......

it helps me to have the symbols daily atr, margin required for the minimum lot size and pips required to make the daily target visible on the chart......

if multiple orders on multiple pairs are open, totaling the lots on each gives me a better picture .......

in the chart below i can see there are 0.05 lots combined which requires 17 pips to make the 4% target, which is 17$...... that sentence satisfies rule number 2......

17$ might sound small....... till 400 is all you have to work with......h
//------




audusd-m30-oanda-division1-margin-required.png
 

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
1/4/24 ...........

i am off to a terrible start...... my fault......

did not get better...... todays trades were terribly whip sawed..... left no trades open over the weekend....

//----- new rule for me..... no trades on nfp .....

realistic expectations......

ended up 2.5% for the week..... had been up over 10%..... gave back 7% today.....

2.5% a week...... is that bad, good or realistic......

2.5% per week is only 10$ ...... is that good.....

2.5% per week will more than triple your account in a year..... is that bad....

2.5% per week is 2$ per day..... is that realistic.....
//--------

my goal for this account is 0.5 per day and will add 100$ every friday....... target would be just under 12,000 by years end......

making 1% per day would be just over 29,000 .....

making 2% per day would be just over 230,000 .....
//-------

10$....... for a weeks work......lol......

a positive week is a good week......h
 

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
iexposure with large print and symbol profit alert......

inputs are text color.....

spacing sets the distance between columns.....

single pair profit, alerts when any pair has reached the set amount.....

//------

upside of last fridays 100 extra deposit will allow for a fifth 0.01 order.....

downside would be, now increased daily target...... 5$.....

average 15 minute zigzag length is 30 pips...... 30 pips @ 0.01 lots is 3$...... 5 trades would be 15$, if successful.....


rule number 3...... engage your trading plan.......h
//-------

eurusd-m5-oanda-division1-2.png
 

Attachments

  • iExposure large.mq4
    9.1 KB · Views: 0
  • iExposure large.ex4
    16.4 KB · Views: 0

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
trend trading reminds me of my tractor being stuck in the mud...... and all too often........

sometimes you can just give all you got and climb out the hole...... or get stuck worse......

sometimes you can take little moves, rocking back and forth...... eventually you might break free...... or get stuck worse......

the entire month of january was spent rocking back and forth......

the account statement might not show it,,,,, they seldom do...... trust me, i was stuck all month trying to recover from breaking the rules........

0 trades currently open...... will continue to add 100$ each week......

6. don't break your rules......

have high hopes for february......h
//-------

2 1.png
 

Maverick

Master Trader
Apr 3, 2014
460
8
79
Bournemouth UK
My setup for Monday open

SPX500_SBM5_02.02.2024.png

Just wish I had this on a LIVE spreadsheet ... struggling to find out How to get "Live" data from "MT5" into Excel

02.02.2024 @ 00.00.png
 

Maverick

Master Trader
Apr 3, 2014
460
8
79
Bournemouth UK
what determines buy or sell.....h
At the moment it is solely a visual aid ... User decides

Based on the above image I would wait for the table to start going Green from left to right then start looking for an opening in my chosen TF
Post automatically merged:

I will create another image when London opens on Monday ... if I am available to do so
 

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
My setup for Monday open



Just wish I had this on a LIVE spreadsheet ... struggling to find out How to get "Live" data from "MT5" into Excel
//-----
but what determines whether the words say buy or sell.......

as example, below is a mq4 dashboard with your timeframes and ma periods...... whether the square's are lime or red is determined by the ma being tested being above or below it's prior value...... could have just as easily used buy or sell......

the 4 squares are the sma, ema, ssma and lwma...... in that order......

the top row buttons are clickable..... clicking 1440 changes chart time frame to daily......and so on.......

clicking the eurusd button changes the chart to that pair...... and so on......

clicking the ma periods does nothing but it could if need be......

you can take enivids ma mq5 dashboard and expand it to suit your needs......

depending on your refresh rate, that would be live...... h
//-------

audusd-m30-oanda-division1-maverick.png
 

Maverick

Master Trader
Apr 3, 2014
460
8
79
Bournemouth UK
but what determines whether the words say buy or sell.......
"boolean" would be either + or - ... MA value being either more or less than price
I would then be able to display the + or - as True/False and then convert to Buy/Sell

Agreed I need to do some more research BUT I do know it is possible ... as a starting point

https://superuser.com/questions/893412/how-to-get-text-instead-of-truefalse-in-excel

That said I will be using Libre Office

Don't want to start running before I figure how to get the data ... one hurdle at a time
Post automatically merged:

Sorry but ... I find your example overpowering and not as informative at a glance
 

Maverick

Master Trader
Apr 3, 2014
460
8
79
Bournemouth UK
At the moment I am only interested in three markets so I have already started preparing a spreadsheet ... Still a work in progress

Final.png

Already know what I will be doing with the blanks :D

The plan will be to display it on its own monitor
 

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
Sorry but ... I find your example overpowering and not as informative at a glance
//------

picky, picky, picky....... lol........

ok, ok, ok..... took a couple minutes to change it to suit your 'better way'...... there are a couple differences in your buy/sell spx500 and mine..... most likely that is due to broker price feeds....... that's common......

i verified the 30 and 60 minute sell signals are correct using thinkmarkets.......

one of the best things about learning to code is you can change things to suit your preferred view...... or add a few features not available in the original code..... or remove what might be confusing..... you can learn a lot studying posted indicators and ea's.....

most will never post the mq4...... so you must go it alone......

few will always post the mq4......

learn it and become one of the few...... h
//-----


spx500-m30-tf-global-markets.png
 

Maverick

Master Trader
Apr 3, 2014
460
8
79
Bournemouth UK
i verified the 30 and 60 minute sell signals are correct using thinkmarkets.......
How did you figure my broker is ThinkMarkets ... You are right
Post automatically merged:

Seriously your latest creation is VERY GOOD

And its showing SMA and EMA
 

hayseed

Master Trader
Jul 27, 2010
1,146
273
149
usa
The aqua is a bit in your face though IMO
//------

yeah it is....... my eyes aren't what they used to be....... i need bright lively colors for contrast.......

speaking of which, ran some scans this afternoon....... these charts will be unintelligible to almost everyone...... but to me they are a bright light in the dark if you know what to look for........

look at the chart saying ao x 0........ look at the us30 row...... very often if all the zigzags are up except one and that timeframe has a awesome oscillator that crossed above 0, odds favor continued rise.....

look at the chart macd x 0...... and the uk100..... all the zigzags are up but one...... all the macds are above 0......

look at the qqe x 0..... should say qqe x 50..... will fix that tonite....... look at eurnzd........ all the zigzags are down but one...... and that timeframe had the qqe cross below 50......

the perimeter squares are last zigzag leg direction, red down, lime up..... whats inside the square is the signal..... once you know exactly what to look for, it makes perfect sense.....

yeah i know it might seem childish...... heck it is childish....... it was written for peyton......h
//------

xauusdx-d1-tf-global-markets-us-ao-0.png


//-------

euraudx-d1-tf-global-markets-uk-100.png


//-------
aus200-m30-tf-global-markets-us30.png
 
  • 👍
Reactions: Johnere