Jul 212014
 
Mordor's gridder 18 months

Mordor’s gridder in 01 Jan 2013 – 20 Jul 2014 (18 months)

This is the first successful EA I coded while working my way out of past mistakes. It is completely working EA. Named it V 0.1 because I have more ideas to develop and I may build them upon this code later.

It is one of the ideas I came up while observing the behavior of other grid systems in the market. In short.

  1. Grid system. You open new positions every XX pips.
  2. Low (-ish) risk, with small profitability.
  3. Moderate draw-down.
  4. Non NFA compliant (Hedges)
  5. ECN compliant (no SL and TP is ever set, so it runs on ECN brokers, just fine)
  6. TP is not set, but a fixed amount of money for total profit is used.
  7. No stop loss, everything is hedged, so it’s not necessary.
  8. Works better in more volatile pairs.

—> You can download the code here. <—

Or get the results from the picture above –> Right from here.

I have used the following settings for those results:

  • AggresiveHedge=1;
  • GrabAndRunTarget=5;
  • InitialLots=0.01;
  • PipsPerStep=50;

Theory behind the EA.

In a trendy market or in market with large swings, you can run automated trader (like this one) to capture moves, regardless where they go.

You open both long and short positions and start adding up to shorts or longs depending on where the market goes.

If the market swings back against your already open positions, you add positions in the same direction as market, until the winners overwhelm the losers.

If too many positions are open in one direction and market swings back, you have the choice to wait until the EA balances it, or use aggressive mode 1 or 2 (1 = mild, 2 = worse than Martingale)

Provided you have $300-500 buffer for a bundle starting at 0.01 lots, this system is quite safe.

Here are 2 examples of how this looks like in live account:

Screenshot_2014-07-21-11-08-27 Screenshot_2014-07-21-11-08-59

If you don’t set too much profit to take, the EA usually takes the profit after opening 3 positions.

If you aim higher, you need to wait, until the EA opens enough winners to collect the targeted profit.

It is a Slow and steady EA, so you need to be patient.

PROs.

  • Set and forget. Provided you have enough buffer in the account – this system will work for you, while you sleep.
  • You can start working with $500 account.
  • Profit is guaranteed. Sooner or later.
  • Low or No risk on grid sizes >30 pips.

CONs.

  • You depend on trendy markets. If the market ranges – you can see the system locked between losers, waiting for a trend.
  • It is really slow system when locked with too many open positions. You may wait a week until it unlocks or use aggressive mode.
  • Quite high risk on grid sizes <25 pips due to more frequent lockouts.
  • I have written the code for 5-digit brokers. Will change it later, when I have more time to write :)

When the system goes locked badly?

It does not happen often, but you may stumble on a square formation when market is ranging, then goes wild for few quick swings and then ranges again. Like this:

Example of EA lockout.

Example of EA lockout.

When something like this happens, the EA will have 6 losers and you will need plenty of patience, until the market swings further up or down, so the EA covers the losers with winners and closes into profit.

Unfortunately, if you have a grid of 20 pips, you will need to wait for a 100-PIP swing from the EA pivot point, to cover everything.

With 3 long losers and 3 short winners, you have:

  1. Position 1 (furthest long) @ -120 PIPs.
  2. Position 2 (further long) @ -100 PIPs.
  3. Position 3 (nearest long) @ -80 PIPs.
  4. Position 4 (furthest short) @ +60 PIPs.
  5. Position 5 (closer short) @ +40 PIPs.
  6. Position 6 (closest short @ +20 PIPs.

Total losers 3, with -300 PIPs loss.

Total winners 3, with 120 PIPs profit.

To balance this, you need another short (or few shorts) which will cover all 3 losers.

Normally it will take 3+ more short winners to cover all losers (Another 60 pips move down) or one big short which will cover all losers in the next swing down.

I have coded 2 kinds of aggressive approach to this issue.

First method will open 3 x initial_lots short (in the above case). This covers most cases where the market exits from the range, but will not cover the cases where the market swings back (and opens 2 more long positions) and then returns to ranging. For this, I developed method 2.

Second method will open next position with the lot-size equal to the sum of lots on all already opened positions on the other side of the EA’s pivot.

e.g. If you have initial lots = 0.01 and turn out locked with 0.05 lots short and 0.03 lots long – next Long position opened will be with size 0.05 to cover those nasty 5 shorts opened to balance the 3 long in the example above.

If this is not right for you, feel free to change this part of the code with whatever suits you:

	orders_Total = CountOrders();
	
	if( orders_Total > 0) {
		longDelta = (currentPrice - order_maximal);
		shortDelta = (order_minimal - currentPrice);
		longPipDistance = longDelta * Normalizator;
		shortPipDistance = shortDelta * Normalizator;
		if (longPipDistance > PipsPerStep) {
			if (AggresiveHedge == 1) {lots = orders_Short * InitialLots;}
			if (AggresiveHedge == 2) {lots = lots_Short;}
			check = CreatePendingOrders(LONG, OP_BUY, Ask, lots, 0, 0, ""); 
		}
		if (shortPipDistance > PipsPerStep) {
			if (AggresiveHedge == 1) {lots = orders_Long * InitialLots;}
			if (AggresiveHedge == 2) {lots = lots_Long;}
			check = CreatePendingOrders(SHORT, OP_SELL, Bid, lots, 0, 0, "");
		}
	}
	

**DISCLAIMER**
This blog post is for research and entertainment purposes only. ForEx trading carries the potential for substantial gains and substantial losses. Any potential losses suffered through ForEx using the information in this blog post is unfortunate, but cannot in any way, shape or form be used against me. I cannot be held liable for any losses suffered on your part in the market.

Thank you in advance.

Happy PIPping and if you have any ideas to get this system better – drop me a line :)

 Posted by at 6:47 pm
May 262014
 

This is what you can farm as materials in the different levels of the tower. I did not include the bosses that can be killed only once, because you only get 1-3 drops from them … once.

Pure salt crystals:

  1. Floor 1 - Place of the beginning 1-3.Skeletons.
  2. Floor 2 - Place of power 1-4. Skeletons.
  3. Floor 3 – Place of record 1-4. Skeletons.
  4. Floor 17 – Valley of screams 1-5. Sharkmen.
  5. Floor 19 – Place of traps 1-5. Sharkmen.

 Natural sulphur powder:

  1. Floor 4 – Miniature garden 1-3. Golems.
  2. Floor 22 - Forest of truth 1-7. Blood golems.

Fragment of mother earth:

  1. Floor 4 – Miniature garden 1-3. Wooden Forester. MG-2.
  2. Floor 7 - Nest of Gorgon. Gorgon.

Truffle:

  1. Floor 4 – Passage & Room of the gardener. Boarmen.
  2. Floor 5 – Forest of life 1-6. Boarmen.
  3. Floor18 - Ancient forge. Lionmen.
  4. Floor 22 – Room of test 1-3 & Room of truth. Boarmen.
  5. Floor 23 – Place of destruction 1-4. Lionmen.
  6. Floor 24 – Twisted space. Lionmen.

Scale of dragon:

  1. Floor 4 – Passage & Room of the gardener. Lizardmen.
  2. Floor 6 – Place of dazzlement 1-3. Lizardmen.
  3. Floor 7 – Metallic space 1-3. Lizardmen.
  4. Floor 15 – Refuge of the flame 1-6. Lizardmen.
  5. Floor 22 - Infinite maze of dead 1-7. Lizardmen.

Golden fruit seed:

  1. Floor 8 - Goblin area 1-2. Goblins.
  2. Floor 9 – Gold workroom 1-6. Goblins.

Petal of edelweiss:

  1. Floor 8 - Dwarf area 1-2. Dwarves.
  2. Floor 9 – Gold workroom 1-6. Dwarves.

Piece of rune stone:

  1. Floor 8 - Wild hammer @ Conflict area.
  2. Floor 10 – Way to the quarry 1-3. Urukhai.
  3. Floor 19 – Place of traps 1-5. Megalodon.

Seed of the tree spirit:

  1. Floor 10 – Way to the quarry 1-3. Orcs.
  2. Floor 11 – Rest area of wind 1-3. Orcs.
  3. Floor 12 – Place of ordeal 1-3. Gnolls & Forgotten tomb of the orcs 1-8. Orcs.
  4. Floor 14 – Inextinguishable blast furnace 1-6. Orcs.
  5. Floor 22 - Lucian’s summoning place 1-5. Werewolves.

Wet moss:

  1. Floor 10 – Quarry of dwarves 1-3 & Room of the dwarf miner. Gavial & Iron chin.
  2. Floor 23 – Place of destruction 1-4.Aligators.

Aromatic herb leaf:

  1. Floor 13 – Tower reactor 1-3. Control room. Ogres.
  2. Floor 21 – Place of truth 1-4. Ogres.
  3. Floor 25 – Space of immortality 1-6. Ogres.

Scale of fish:

  1. Floor 16 – Water temple 1-3. Fishmen. Octopussies.
  2. Floor 19 – Place of traps 1-5. Fishmen.
  3. Floor 20 – Room of the cure 1-5. Fishmen.

Root piece of Yggdrasil:

  1. Floor 17 – Valley of screams 1-5. Golems.
  2. Floor 20 – Room of the cure 1-5. Golems.

Crystal of flame:

  • Floor 22 – Room of test 2. Crazy cannon.

Marble of life:

  • Floor 3 – Place of record 4. Thriller.

In general, the quest line in this game is very simple. You may miss some of the quests, but the main quest line cannot be messed up. You can’t progress to upper levels if you don’t follow it.

I noticed that if you get back to tower level 1 and proceed up again – you may meet some side quests that don’t show up in the first time, so do it at least once (or twice) – just to check if you don’t miss something.

Do all levels of all Blade types and do power dungeons every day and you will level your character much faster than the experience given by quests and side quests.

That’s why – I decided not to write complete quest walkthrough like other android games.

Floor 1

Place of the beginning 1-3.

Skeletons. Pure salt crystals.

Aurum blade, floor 1

Aurum blade, floor 1

Floor 2

Place of power 1-4.

Skeletons. Pure salt crystals.

Aurum blade, floor 2

Aurum blade, floor 2

Floor 3

Place of record 1-4.

Skeletons. Pure salt crystals.

Thriller. Boss. POR-4. Marble of life.

Aurum blade, floor 3

Aurum blade, floor 3

Floor 4

Miniature garden 1-3.

Golems. Natural sulphur powder.

Wooden Forester. MG-2. Fragment of mother earth.

MG3 -> Passage of the gardener. -> Room of the gardener.

Boarmen. Truffle.

Lizardmen. Scale of dragon.

Aurum blade, floor 4

Aurum blade, floor 4

Aurum blade, floor 4 - Room of the gardener.

Aurum blade, floor 4 – Room of the gardener.

Floor 5

Forest of life 1-6.

Boarmen. Truffle.

Aurum blade, floor 5

Aurum blade, floor 5

Floor 6

Place of dazzlement 1-3.

Lizardmen. Scale of dragon.

Level6

Aurum blade, floor 6

Floor 7

Metallic space 1-3 & Nest of Gorgon.

Lizardmen. Scale of dragon.

Gorgon. Fragment of mother earth.

Aurum blade, floor 7

Aurum blade, floor 7

Floor 8

Goblin area 1-2

Dwarf area 1-2

Conflict area.

Goblins. Golden fruit seed.

Dwarves. Petal of edelweiss.

Wild hammer @ Conflict area. Piece of rune stone.

Aurum blade, floor 8

Aurum blade, floor 8

Floor 9

Gold workroom 1-6.

Goblins. Golden fruit seed.

Dwarves. Petal of edelweiss.

Aurum blade, floor 9

Aurum blade, floor 9

Floor 10

Way to the quarry 1-3:

Orc. Seed of the tree spirit.

Urukhai. Piece of rune stone.

Quarry of dwarves 1-3 & Room of the dwarf miner.

Gavial, Iron chin. Wet moss.

Aurum blade, floor 10

Aurum blade, floor 10

Aurum blade, floor 4, Quarry of dwarves

Aurum blade, floor 4, Quarry of dwarves

Floor 11

Rest area of wind 1-3.

Orcs. Seed of the tree spirit.

2 different approaches to the next level, chosen from RAOF-1. Use the right hand rule to find everything on this level.

Aurum blade, floor 11

Aurum blade, floor 11

Floor 12

Place of ordeal 1-3.

Gnoll. Seed of the tree spirit.

Blue portal in POD-1 leads to the area Forgotten tomb of the orcs.

Red portal leads to a golden column where an endgame alchemist recipe is hidden (see below)

Forgotten tomb of the orcs 1-8.

Orcs. Seed of the tree spirit.

Aurum blade, floor 12

Aurum blade, floor 12

Aurum blade, floor 12, Forgotten tomb of the orcs.

Aurum blade, floor 12, Forgotten tomb of the orcs.

Floor 13

Tower reactor 1-3 & Control room.

Ogres. Aromatic herb leaf.

There are 4 globes which are to be pressed in specific order, according to the color. Before the last patch, you needed to guess just one. Now you need to guess correct order. Each error teleports you back, but it’s not that hard. You get enough experience from kills.

Aurum blade, floor 13

Aurum blade, floor 13

Floor 14

Inextinguishable blast furnace 1-6.

Orcs. Seed of the tree spirit.

Aurum blade, floor 14

Aurum blade, floor 14

Floor 15

Refuge of the flame 1-6.

Lizardmen. Scale of dragon.

Aurum blade, floor 15

Aurum blade, floor 15

Floor 16

Water temple 1-3.

Fishmen. Scale of fish.

Kraken’s nest 1-6 & Kraken room

Octopussies. Scale of fish.

In kraken room, read the books for ancient knowledge of 3 stat points. See below for exact place.

Aurum blade, floor 16

Aurum blade, floor 16

Aurum blade, floor 16, Kraken

Aurum blade, floor 16, Kraken

Floor 17

Valley of screams 1-5.

Golems. Root piece of Yggdrasil.

Sharkmen. Pure salt crystals.

Aurum blade, floor 17

Aurum blade, floor 17

Floor 18

Ancient Ruins 1-6.

Ancient armor forge.

Ancient weapon forge.

Lionmen. Truffle.

Aurum blade, floor 18

Aurum blade, floor 18

Floor 19

Place of traps 1-5.

Sharkmen. Pure salt crystals.

Fishmen. Scale of fish.

Megalodon. Piece of runestone. POT-4.

Level19

Aurum blade, floor 19

Floor 20

Room of the cure 1-5.

Fishmen. Scale of fish.

Golems. Root piece of Yggdrasil.

Aurum blade, floor 20

Aurum blade, floor 20

Floor 21

Place of truth 1-4.

Ogres. Aromatic herb leaf.

Aurum blade, floor 21

Aurum blade, floor 21

Floor 22

Room of test 1-3.

Boarmen. Truffle.

Crazy cannon. ROT-2. Crystal of flame.

Lucian’s summoning place 1-5.

Werewolves. Seed of the tree spirit.

Infinite maze of dead 1-7.

Lizardmen. Scale of dragon.

Farm at least 65-70 scrolls from the boarmen outside if you want to visit all rooms of the maze. Except the test, there are 2 ancient books. One knowledge and one recipe.

Forest of truth 1-7 & Room of truth.

Boarmen. Truffle.

Blood golems. Natural sulphur powder.

Aurum blade, floor 22

Aurum blade, floor 22

Aurum blade, floor 22, Lucian's summoning place.

Aurum blade, floor 22, Lucian’s summoning place.

Aurum blade, floor 22, Infinite maze of dead.

Aurum blade, floor 22, Infinite maze of dead.

Aurum blade, floor 22, Forest of truth.

Aurum blade, floor 22, Forest of truth.

Floor 23

Place of destruction 1-4.

Aligators. Wet moss.

Lionmen. Truffle.

Aurum blade, floor 23

Aurum blade, floor 23

Floor 24

Twisted space

(only 1 map here)

Lionmen. Truffle.

Level24

Aurum blade, floor 24

Floor 25

Space of immortality 1-6.

Ogres. Aromatic herb leaf.

Aurum blade, floor 25

Aurum blade, floor 25

 

Here are some things, you may normally miss:

Alchemist necklace.

Alchemist necklace.

Alchemist necklace is in the middle column.

Alchemist necklace is in the middle column.

Alchemist ring:

Ring of the alchemist.

Ring of the alchemist.

Alchemist gloves:

Gloves of the alchemist.

Gloves of the alchemist.

Plenty of stones:

Stash of enchantment stones.

Stash of enchantment stones.

Some good potions:

Stash of purple potions.

Stash of purple potions.

+3 stat points:

Skill points in this bookshelf.

Skill points in this bookshelf.

May 202014
 

Launch GIMP. If you don’t have it – download it from their site. It is free and multiplatform (works like a charm in both Windows and Linux environment).

Step 1. Decide what size your GIF animation will be. Then go to “File -> New” and enter your desired size as Width and Height.

Choose GIF size.

Choose GIF size.

Step 2. Decide how many frames should your GIF animation be, then go to Layers window and duplicate the “Background” layer as many times as the frame count you choose.

Duplicate background Layer.

Duplicate background Layer.

Step 3. Hide the ones, that are not currently needed by clicking on the “eye icon” beside the layer, choose the one on the bottom and name it “Frame 1″ (Click on the layer and press “F2″ to change name)

Select frame, disable the visibility of the others.

Select frame, disable the visibility of the others.

Step 4. Draw your frame or paste the prepared picture on the white space and then merge it on the layer. Repeat for all frames.

Step 5. Go to “Filters -> Animation -> Playback” and have a look at what you’ve done so far as a sequence. Edit or fix frames if you don’t like the smoothness. Tweak until satisfied.

Step 6. Add the delay of each frame in milliseconds by editing frame name, like in step 3. 1000 milliseconds equals 1 second. Use Playback again as in the previous step, until the timing suits you.

Add desirable timing for each frame.

Add desirable timing for each frame.

Step 7. Use “File -> Export” choose file name and use “.gif” as extension. Choose file type from the drop-down menu below to “GIF” as well. Be sure to check the checkbox for “Animation” and “Loop indefinitely” if you want it to cycle indefinitely.

Check those 2 checkboxes.

Check those 2 checkboxes.

Step 8. You are quite done. Open your newly created file with any browser capable of showing GIF animations.

Completed GIF animation.

Completed GIF animation.

 Posted by at 4:31 pm