BTC USD 80,516.0 Gold USD 4,378.12
Time now: Jun 1, 12:00 AM

Pipforia

maybe some of you who have attended the E-Class is willing to share something here :)

not the EA - but the knowledge
 
Izit pipforia from the same creator as piptronic?
 
I'm looking at the source code of Pipforia right now and wondering why my brother CK Owyong is so fascinated about it.

:(scam:(scam:(scam
 
update.. from some friends. mind you i dont use this ea personally, but just sharing it out :)

Hi guys,



Thanks to all that expressed an interest in the HGM TEPS EA(6 in all).



First off let me start by saying that it was my very first forage into the EA creation business and I have subsequently found that there were many bugs in the program. It works.....just not very well.



Attached you will see 5 files.

The main one is the TEPS Library as this file contains routines common to all the other EA’s. In order to use the EA’s you need to copy “TEPS Library” to “C:\Program Files\ YOUR METATRADER INSTALL FOLDER \experts\include” folder.

Copy the other 4 EA’s (including HGM TEP v1.21) to your “ \experts” folder

You should also ensure that you have the following 2 files “ WinUser32.mqh” and “stdlib.mqh” in your “\experts\include” folder. It comes standard with MT4 so should not be an issue.



The HGM TEPS V1.21 ea is the main one under discussion. The other 3 will be mentioned later in this email.



Anyway, I have spent many hours working on developing my own EA’s and I have attached a couple of things for you to look at. I have added many of the features that I wanted to the TEPS EA and I would welcome any ideas or input on how to make it better.



I have incorporated the following features :-



· Corrected the trailing stop calculation;

· Added a lopsided grid protection – I have found that generally a big drawdown is the result of 2 things, namely a gentle increase in the amplitude of the up/down trends which opens alternate buy and sell orders. I am still working on finding a fix for this(I am experimenting with an alternative form of grid trading that performs well in a ranging market as a hedge). The second is where there is a spike with a reversal where multiple orders are open in one direction, just missing the profit target and then reversing into a big drawdown. My thinking here is the it may be better to take a slight knock while in small drawdown than let the situation deteriorate into a huge drawdown. Anyway, play with it and let me know you opinions.

· Added Blow out protection – a slightly more sophisticated version of the lopsided grid routine. The EA calculates your maximum adverse exposure on reversal(ie what your drawdown will be before the grid makes a profit on the opposite side). If this amount exceeds 100% of your account, you will hit a margin call and the grid has become a one way bet. In these circumstances it may be better to take a loss now before you hit a margin call. Typically this loss would be 10% of the account versus 80%, so it may be worth looking at. I am not sure how valuable these routines are and would welcome any input or ideas on the matter. The one problem we face is that too many protections eat away your account as surely as a margin call so one has to balance the safety aspect with the requirement to make a profit in the long term;

· The screen displays more information at a glance so you can immediately know what your position is. There is now an arrow that shows you the quickest direction to profit plus an estimate of the number of pips(unlike the far more complicated adverse exposure calculation, this is simply a function of difference between buy and sell lots and does not take new grid positions into account).

· Use as a secondary EA feature. After having 3 experiences where my VPS was rebooted while I was away from the computer and this causing the grid to become lopsided, I have realised that redundancy is an important issue when trading. You can use the TEPS as a separate EA on a separate computer/VPS to monitor your primary VPS. This will close the orders when it sees the orders not being closes by the primary TEPS and will send you an email warning you of the event. Simply set it up on the secondary computer but set the BasketTsAtProfit setting to a higher value than the primary computer AND the trail must also be higher. The EA will then run in tandem and when the first one does not take the profit, the second one will.

· When TEPS locks the profit, it closes all the opposing orders ie if the grid moves into profit in the sell direction, TEPS will close all buy orders. Once profit is locked, the hedging function of these orders are no longer of any use and they take away from the profit. This can be seen when you run a backtest(using the extra grid trader I supplied). Notice that all drawdowns are always reflected downwards......with HGM, drawdowns are reflected as “up” and “down”.....the upwards spikes on HGM backtest are also drawdowns.....it goes up when the profit orders are closed before the losing orders. Forgive me if I state the obvious here.

· The orders are closed in reverse order on the assumption that they are the biggest ones(if you trade same size lots first then this makes no difference). The effect I tried for here is to reduce the cost of slippage. Since the cost is bigger with bigger orders, it is better to close them first.

· Broker monitor - I have included a routine that writes the slippage on all closed orders to a text file. This allows you to keep an eye on your broker. I know I could have written it to the journal and accordingly the Metatrader logs but it is just so much easier to see the slippage all in one place. The file can be found in C:\Program Files\YOUR METATRADER INSTALL FOLDER\tester\files and is called TEPSBrokerMonitor. Don’t ever expect to see more than 2 pips slippage on demo....lol! Its not a bad idea to delete this file from time to time since all 3 EA’s add to the same file and it can get quite big after some time.



In the course of my coding, I had to create my own grid trader since I could not permanently wait for Pipforia HGM to do something so I could see how TEPS reacts. Also I could not backtest the effectiveness in the visual tester because you cannot test multiple EA’s at the same time.



I, personally, have ditched Pipforia because I feel its market entry is weak. I am not here to diss Pipforia but the fact that they are teaching manual entries for the EA says a lot for me.


end of part 1 of 2.


after download the attachment, DO NOT double-click it. open the Winzip program separately, Open--> choose the attachment --> Extract
 

Attachments

part 2 of 2.

I have attached 3 Grid Trading EA’s for you to experiment with. The first 2 are simple braindead buy or sell traders meaning they have no entry logic(actually it does wait for MACD to fall below zero for a sell and be above 0 for a buy but that’s not really very strong)......it simply starts the grid with either a buy or a sell depending on which one you use. It is great for experimenting since you know that it is going to be wrong a fair bit of the time and therefore you can examine various market conditions. You could also use it as a manual trader if you wish.



The 3rd EA is much better and is a variation of the GridMACD that can be found on Forex-tsd. It waits for a MA cross and then lays a pending grid. The theory is that hopefully by the time the first order becomes active, a trend would have developed enough to go straight to profit. It also has an ATR/Bollinger band filter(idea of Al Parsai from another Facebook group) to try an filter out a ranging market. It either won’t enter a pending grid or it will cancel a pending grid the moment a ranging market is indicated.



Initial tests are promising but it is so difficult to tell if it is the filter that works or if it is simply a shift in the timing of the cycles that is reducing drawdown. I need to spend more time experimenting and then validating before I will be able to tell.



The settings for the EA are as follows :-



· MagicNumber(Integer) – as usual. If using as a monitoring EA with no trade ability(ie HGM TEPS v1.21) then makes sure this number is the same as the EA that it is monitoring;

· Testing(True or false) – set this to true if you wish to do a backtest....see known issues further down;

· BasketTrailingStop(True or false) – set to true;

· BasketTsAtProfit(double as $) – set the amount in $ where the trail is to start;

· BasketTrailPercent(integer as %) – set the trail. 100% is a BE level & 0% is no trail. 100% will not make any money!;

· BlowOutProtection(true of false)– set to true if you want to use Blow out protection;

· BlowOutLevel(double as %) – this is the value of the account that will activate the blowoutprotection.....note that blowout protection will activate when maximum adverse exposure reaches this level, not when drawdown reaches this level.

· BlowOutLevel (true of false)– set to true if you wish to use lopsided grid protection;

· EscapeArmLevel(integer as number of grid levels) – the way LGP works is that it requires a certain number of opposite orders to be open eg 2 buys and 2 sell.....this then activates LGP. Use this parameter to set the activation level;

· EscapeLevel (integer as number of grid levels)– once LGP is active, it gets armed when there is a difference in the number of opposite orders eg 2 buys and 5 sells. Use theis parameter to set the arming level(difference in levels);

· EscapeRetracePips(integer as number of pips) – once either LGP or blowout protection are armed, they wait for a certain retracement before they close the grid. Use this parameter to set the number of pips retracement before closing the grid;

· ShowAlerts – self explanatory;

· Sendemailonprofit – self explanatory;

· UseAsSecondaryEA – set this if you want to use as a secondary monitory EA. It actually does nothing different internally, it is simply a different email message so you can differentiate which VPS/computer it comes from;

· GridAnchor (integer as number of pips)– essentially same as HGM;

· GridSpace(integer as number of pips) – same as HGM;

· LotSize1 – 6 (double as lot sizes)– same as HGM;

· CeaseFutureTrades(true or false) – if you want the EA to stop trading use this. It allows the current cycle to close as normal but does not open any future trades;

· BollingerBandDays(integer as number of days) – Used in the ATR/Bollinger band filter;

· TradingRangeDays(integer as number of days) – same as above......both numbers are integers and subject to optimisation;

· StandardDevs(integer) – same as above;

· UseBollingerATRfilter (true of false)– to turn the ATR/Bollinger filter on or off;

· BasketCloseImmediately(true or false) – shut down the grid immediately;



Known Issues



· Needless to say, many of the above features are not applicable to HGM TEPS v1.21 since I cannot control when the other EA trades or be able to stop it. There may also be some issues surrounding the opening of new orders when TEPS has closed the HGM orders. I am trying to isolate these but the interaction between the two does appear to be unstable at times.



· If using TEPS to monitor another EA, be sure to put it on the same currency pair chart that the other ea is trading, otherwise the maximum adverse exposure calculation will be incorrect. It uses the pip value of the chart that it is on to calculate the exposure and pip values differ from currency to currency. Furthermore, if testing, the EA uses a flat rate of 10$ per standard lot. This means that there will be some inaccuracy in the maximum adverse exposure calculation but it should not be significant. In order to calculate the Pip value of a lot, the EA needs to access spot rates of other currencies(eg if you trade GBPJPY the computer needs USDJPY spot to calculate the value of a lot.....and it seems it cannot access this info in the tester.......once again at the risk of stating the obvious this applies to the backtester and does not apply to forward demo testing.



· Also note that this is designed for 4 digit brokers, so if yours uses 5 digits then you gonna have to do some maths. Maybe later I will incorporate the flexibility.





Finally, I feel that I still need to make the error handling routines more robust as this is always a stumbling block. At the same time, if there is anything that you feel will make this trader better, please feel free to email me with ideas or a wishlist.



I will optimise and send out some set files at a later stage. There is still much work to be done and I must admit to feeling intimidated when I see other people’s work.



I have tried to debug as much as I can, but I am sure you guys will be able to find more for me. Please feel free to let me know if you find any.



I look forward to hearing from you all once you have had a look at this.



Happy trading!



Kenny
[email protected]
 
Hi, anyone has the latest version of the pipforia EA? I think it is version 4...
 

Live Forex Chart

Currency
Rates
EUR / USD
1.14790
USD / JPY
156.877
GBP / USD
1.33885
USD / CHF
0.82250
USD / CAD
1.39985
EUR / JPY
180.080
AUD / USD
0.71320
Back
Top
Log in Register