PDA

View Full Version : Hedge Protection for FAPS


koeiseun
11-13-2008, 09:16 PM
All, I am working on a EA that will provide protection against loosing your account balance when the trend goes totally against FAPS. Here are my ideas:
-Run it as a separate EA on a different chart
-As an input you will give it your FAPS magic number so it will only monitor FAPS trades.
- The first version will monitor one trade only (sorry)
- Another input will be the number of PIPs you want to risk (50 or 100 etc.)
- As soon as your FAPS trade is down by say 50 pips it will open a hedge trade.
- You will have a stop loss on the hedge trade in case it moves against your hedge immediately
- Once your hedge trade is in the money, the S/L will be set to the opening value.
- If the trend moves totally against FAPS (as it did today with the M5 setups) you can at some point close both trades and you would only have lost say 50 pips. Much better than 350 or 50% of your account.
- If the trend eventually moves back and the FAPS trade will make you money, the hedge trade will close at open with a zero profit / loss.

Let me know what you all think.

KS

BryanA
11-13-2008, 09:20 PM
All, I am working on a EA that will provide protection against loosing your account balance when the trend goes totally against FAPS. Here are my ideas:
-Run it as a separate EA on a different chart
-As an input you will give it your FAPS magic number so it will only monitor FAPS trades.
- The first version will monitor one trade only (sorry)
- Another input will be the number of PIPs you want to risk (50 or 100 etc.)
- As soon as your FAPS trade is down by say 50 pips it will open a hedge trade.
- You will have a stop loss on the hedge trade in case it moves against your hedge immediately
- Once your hedge trade is in the money, the S/L will be set to the opening value.
- If the trend moves totally against FAPS (as it did today with the M5 setups) you can at some point close both trades and you would only have lost say 50 pips. Much better than 350 or 50% of your account.
- If the trend eventually moves back and the FAPS trade will make you money, the hedge trade will close at open with a zero profit / loss.

Let me know what you all think.

KS

As one of the losers today, I say get that puppy goin'.

Bryan

wishiwasrich
11-13-2008, 09:22 PM
that sounds like an awesome idea, please count me in on that one!!!
When will you have it finished?
If that is possible to do, that may eliminate bad trades all together

koeiseun
11-13-2008, 09:26 PM
I will have all day Sunday to do it and test. Lets hope it work. The theory seems OK.

KS

BryanA
11-13-2008, 09:26 PM
Faps has a hedging EA. But you have to become a member and pay hundreds of dollars. In the long run though, it may be worth it.

Bryan

koeiseun
11-13-2008, 09:48 PM
My EA that send emails when FAP open a trade.
No guarantees :-)

This is mainly for me to test how to add an attachment to the forum.

Add this indicator to the experts\indicators folder, compile, re-start MT4, drag onto chart (any), enable DLL imports, set your FAP magic number, enjoy.

Remember to set your email in Tools -> Options -> Email.

Best to send to your cell phone. Then you can rush out of meetings to go and check your trade.

Earl
11-13-2008, 10:06 PM
My EA that send emails when FAP open a trade.
No guarantees :-)

This is mainly for me to test how to add an attachment to the forum.

Add this indicator to the experts\indicators folder, compile, re-start MT4, drag onto chart (any), enable DLL imports, set your FAP magic number, enjoy.

Remember to set your email in Tools -> Options -> Email.

Best to send to your cell phone. Then you can rush out of meetings to go and check your trade.koeiseun is my new best friend....daymmmnnn you good guy!!!:D

and I love your idea about the hedge trade

newman
11-13-2008, 10:57 PM
Finally there is someone that shared my view.

However, how does the EA got into the profit zone if FAPS position and Hedge position is using equal lots. You always has a 50Pips lost, isn't it ?

If you use unbalance lots, if the market moves against the position that has a higher lots ratio, you are back to square one.

^eagle^
11-14-2008, 04:55 AM
My EA that send emails when FAP open a trade.
No guarantees :-)

This is mainly for me to test how to add an attachment to the forum.

Add this indicator to the experts\indicators folder, compile, re-start MT4, drag onto chart (any), enable DLL imports, set your FAP magic number, enjoy.

Remember to set your email in Tools -> Options -> Email.

Best to send to your cell phone. Then you can rush out of meetings to go and check your trade.

Koeisun......
A FAPwinner defector?
I love this place!
Welcome to the forum brother!

balanced
11-14-2008, 06:17 AM
I like the idea of hedging the break out of consolidation causing a big drawdown to your FAPS account.

Even better see if you can code FAPS to stop selling double bottoms at key larger timeframe pivots and candle reversal patterns while the Dow rips over 500 points.

And sinse that is never going to happen your hedging system looks as if it might work. I would be willing to test. Few questions. What timeframe would you run the EA? 100 would be better than 50 pips to start the hedge.

joames
11-14-2008, 06:54 AM
Is a good idea, but when you say "Once your hedge trade is in the money", i dont know when it is in the money, because if it is near of open always, then touch it many times, and close the hedge trade always. And what is the stop posible when open the hedge trade to avoid this?

newman
11-14-2008, 07:42 AM
Just to provide my 2 cents opinion, don't quote your EA first, plan how you going to hedge the losing position ? Using a higher lot size for opposite direction may not be a viable option too.

May be the people here can help to provide some inputs how it can be hedge to obtain a better risk-return ?

koeiseun
11-14-2008, 08:46 AM
I will take all input into consideation and make as many of teh parameters configurable.

KS

koeiseun
11-14-2008, 08:50 AM
Finally there is someone that shared my view.

However, how does the EA got into the profit zone if FAPS position and Hedge position is using equal lots. You always has a 50Pips lost, isn't it ?

If you use unbalance lots, if the market moves against the position that has a higher lots ratio, you are back to square one.

When the hedge position gets back to zero it will close and then you are back to the FAP position only. If it completely goes agains the FAP trend this wil protect your capitol, it will not make it a profitable trade.

wishiwasrich
11-14-2008, 09:24 AM
My EA that send emails when FAP open a trade.
No guarantees :-)

This is mainly for me to test how to add an attachment to the forum.

Add this indicator to the experts\indicators folder, compile, re-start MT4, drag onto chart (any), enable DLL imports, set your FAP magic number, enjoy.

Remember to set your email in Tools -> Options -> Email.

Best to send to your cell phone. Then you can rush out of meetings to go and check your trade.

Sorry quick question, when you say set your magic number, how do i do that?

wishiwasrich
11-14-2008, 09:28 AM
Will this be an automatic hedge, say when your -50 pips and then it will close out at 0 profit on the way back up?

wishiwasrich
11-14-2008, 10:23 AM
Guys, is it possible to write an EA to do this (below)

Example;
open hedge against FAP trade when FAP hits -50 pips.
Say FAP lot size is .1
Open hedge at .5 lot size
set EA to close at profit of 50 pips, and stop loss at 0 profit, putting your FAP trade at -100 pips (set FAP stop loss at -100)
Therefore, making this a turn it on and leave it making money either way!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Can this be done? if so, i am retired starting then.

newman
11-14-2008, 10:30 AM
Hi Koei,

I understand where you coming from, for example,
you opened your long hedge position at 1.5050, becuase of spread, to achieve profit level of 0, you need to close at 1.5060 (easier for illustration, could be lower), so when you close your position at 1.5060, it will immediately open the long hedge position again at 1.5070 (spread different) since it is 50 pips away. This process will keep repeated very frequently and the gap becomes bigger and bigger if you set your hedge window too low (opening and closing).

koeiseun
11-14-2008, 12:11 PM
Sorry quick question, when you say set your magic number, how do i do that?
When you look at the ForexAutoPilot parameter / input windows it shows a magic number. Duplicate that magic number in the FAPAlert input parameter window.

Sens me a PM if this is still unclear.

KS

BryanA
11-14-2008, 12:20 PM
When you look at the ForexAutoPilot parameter / input windows it shows a magic number. Duplicate that magic number in the FAPAlert input parameter window.

Sens me a PM if this is still unclear.

KS

Man, you can tell we are all excited about this idea. We are already asking questions about something that we don't even have yet. LOL

Bryan

BryanA
11-14-2008, 12:33 PM
I was wondering how, if possible, you could backtest a separate hedging EA in conjunction with FAPS. Obviously the hedging EA has to have another system running to trigger it.

Bryan

wishiwasrich
11-14-2008, 12:36 PM
Hi Koa

thanks for that,

Have just tested the idea of the profitable Hedge. Using my numbers above, it does not add up, if the price bounces and activates your trade you have to take a -10 pip SL (the system has to have a 10 pip differnce). This cancels out any profit that could be made. Anyone have any ideas?
I guess it means that if your trading $1 a pip, and set your SL at -100 pips, this could be an insurance policy to protect against big losses, however you have to still factor that your out $110 - 20= $90 loss if your trade comes back to win. If it bounces it will cost you $10 a bounce. UNLESS you set the EA (if possible) to close all trades when the trade say hits -200 pips or -150 pips. You will have $80 loss (not including any bounces)
Is 100 pips to small? does Faps swing more than 100 pips on a regular basis to win on the M5?

koeiseun
11-14-2008, 12:49 PM
hi wishi,
What you mentioned is where the theory and the practical implementation might clash. We will not know what will happen until we have something to test with (i guess that is up to me :-)) I am concerned about a bouncing market. If your trade comes back to win the hedge trade will close at 0 if it was possible to set the s/l to open after the hedge has gone positve.
About the 100 pips; it is all about how much are you prepared to loose on a trade (money management)
This whole scheme is to protect your account from total wipeout as been seen before with FAP. As I am programming I am praying that it will work once it is put in practice.

koeiseun
11-14-2008, 12:52 PM
I was wondering how, if possible, you could backtest a separate hedging EA in conjunction with FAPS. Obviously the hedging EA has to have another system running to trigger it.

Bryan

I do not think it will be possible to backtest this one. We will have to demo it to death.

wishiwasrich
11-14-2008, 02:01 PM
Hi Koe
we have faith in you!!!
Going to be very difficult to judge 200-300 pip swings seem a very common thing. Would increaseing the lot size on the hedge (to offset loss) be practical?

Sooner
11-14-2008, 02:42 PM
In my opinion increasing the lot size is just opening you up to more risk. I have been sitting here trying to figure out a way that you could backtest the average draw down per trade or even the average move against you. It would be interesting to see what kind of profits could be gained or lossed sustained from simply opening both a buy and sell trade at the same time with the buy having the same TP as the sell.

Your margin required would not be increasing so long as the trade opened was the opposite one of Faps, and you would gain some ability to make more from what would otherwise just be a straight draw down.

When talking about the stop at BE, I don't see how it would help much as it might bounce off the BE price several times resulting in several orders being opened and closed and the spread being paid each time, thereby increasing your losses. What would happen if it went up, then came down to BE or just below it then started the 800 pip run like we saw yesterday?

wishiwasrich
11-14-2008, 03:17 PM
Hi Sooner,

I have seen a stragedy close to that before, where you open a buy and sell at the same time and then once it hits +20 pips either direction, you buy/sell again to icrease your lot size in that direction. Again it hits the bounceing affect thing and you end up losing your head. Looking forward to what Koe can do!

Alfonzo
11-14-2008, 04:53 PM
Hi Sooner,

I have seen a stragedy close to that before, where you open a buy and sell at the same time and then once it hits +20 pips either direction, you buy/sell again to icrease your lot size in that direction. Again it hits the bounceing affect thing and you end up losing your head. Looking forward to what Koe can do!
Hi all. I started a demo account a few days ago and have quickly got it up from $10k to $11k using max 3 trades and 25TP, at $1 per pip stakes. All my 3 open trades were showing about -$130 earlier this evening (UK time). I've been thinking about the hedging thing for a while so thought I'd have a go at trying to bring it back to breakeven using incremental hedging bets. In the space of a couple of hours I went up to staking up to $50 per pip, and have banked an additional $3k. Unfortunately I now also have 4 open (all buy) trades totalling -$4k, and it's stopped trading for the weekend!! Must admit that when you say 'you end up losing your head' that's exactly what happened - thankfully its only a demo! Anyway, should have some more fun when the market opens to see if I can get the -$4k down to $-3k or better, so that I've broke even. Does anyone know what time the market opens again on Sunday (UK time?) Cheers

Earl
11-14-2008, 09:27 PM
hey I had another idea.... we can add a stop and revers instead right into the code...

//----------------------- BUY CONDITION if(OpenPricePreviousMAValueCurrent) { ticket = subOpenOrder(OP_BUY); // open BUY order subCheckError(ticket,"BUY"); return(0); } //----------------------- SELL CONDITION if(OpenPricePrevious>MAValuePrevious && OpenPriceCurrent 0 || StopAndReverse) { for(cnt=0;cntMAValuePrevious && OpenPriceCurrent 0)

basically it will close the trade and open new one if signal changes...

code that into faps and we are good to go...I'm going to take a crack at it

Short14
11-14-2008, 09:44 PM
Hey all.... I know we all share our results and all, but I was thinking maybe we could make a donation account for koeiseun I am willing to set it up and donate the first $20.00 we all know this is going to take alot of work to accomplish..... That way if we end up with a kick ass ea from all of our suggestions and efforts maybe we can all profit from it.. Its just an idea.... Let me know what you all think

Earl
11-14-2008, 10:52 PM
need an ex4 decompiler.... we don't need a new EA we just got to adjust this one....

I downloaded a demo damn scammers hide the code...

anyone already have the code????

#import "Kernel32.dll"
int CreateFileA(string a0, int a1, int a2, int a3, int a4, int a5, int a6);
bool ReadFile(int a0, int& a1[], int a2, int& a3[], int a4);
bool WriteFile(int a0, string a1, int a2, int& a3[], int a4);
bool CloseHandle(int a0);
#import

extern double Lots = 1.0;
extern double LotsRiskReductor = 1.0;
extern int MaxOrders = 1;
extern int MaxLots = 100;
extern int StopTime = 5;
extern int aaa = 13;
extern int bbb = 14;
extern double TakeProfit = 20.0;
extern double StopLoss = 0.0;
extern double TrailingStop = 0.0;
extern int UseMAControl = 1;
extern int PeriodMA = 100;
extern int PriceMA_0_6 = 0;
extern int TypeMA_0_3 = 0;
extern double SpanGator = 0.5;
extern int SlipPage = 3;
extern int OrderMagic = 231313;
extern double SafetyGapDemarker = 0.2;
extern double SafetyGapWPR = 0.0;
extern int StartWorkTimeHour = 0;
extern int StartWorkTimeMin = 0;
extern int EndWorkTimeHour = 0;
extern int EndWorkTimeMin = 0;
extern string KEY = "012345";
int gi_208;
double g_icustom_212;
double g_icustom_220;
double g_icustom_228;
double g_digits_236;
double g_str2dbl_244;
double g_ifractals_252;
double g_ifractals_260;
double g_ima_268;
double g_ima_276;
string g_dbl2str_284;
double gda_292[];
double gda_296[];
int g_datetime_300;

int init() {
if (StartWorkTimeHour < 0 || StartWorkTimeHour > 23) StartWorkTimeHour = 0;
if (StartWorkTimeMin < 0 || StartWorkTimeMin > 59) StartWorkTimeMin = 0;
if (EndWorkTimeHour < 0 || EndWorkTimeHour > 23) EndWorkTimeHour = 0;
if (EndWorkTimeMin < 0 || EndWorkTimeMin > 59) EndWorkTimeMin = 0;
return (0);
}

int deinit() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int start() {
int li_8;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int CalculateCurrentOrders() {
int li_ret_0;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int TrueOpen() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool CheckParams() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool CheckAccount(int a_cmd_0, double ad_4) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

double CalcLotsVolume() {
double ld_ret_0;
double l_maxlot_8;
double l_minlot_16;
double l_lotstep_24;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool PrepareIndicators() {
double l_ifractals_20;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int TradeSignalOpenOrder() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int TradeSignalCloseOrder() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

double NormalizeLot(double ad_0, bool ai_8 = FALSE, string a_symbol_12 = "") {
double ld_ret_20;
double ld_28;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int ModifyOrder() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int TradeSignalCloseOrderOnTime(int ai_unused_0) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool IsDateTimeEnabled(int ai_0) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool IsGatorActiveUp() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool IsGatorActiveDown() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int IsFractalLower() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int IsFractalUpper() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool IsOrderProfitable() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int WasDemarkerLow() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int WasDemarkerHigh() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int WasWPROverBuy() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int WasWPROverSell() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int OpenOrder(int ai_0, double a_lots_4, string a_comment_12 = "") {
int l_cmd_48;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

void CloseOrder() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool GetOrderByPos(int a_pos_0) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

void TrailOrderStop() {
int li_0;
double ld_4;
double ld_12;
double l_price_20;
double ld_28;
double ld_36;
int li_44;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int OrderTypeDirection() {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int DirectionOrderType(int ai_0) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

int ColorOpen(int ai_0) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

double PriceOpen(int ai_0) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

double PriceClose(int ai_0) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

double iif(bool ai_0, double ad_4, double ad_12) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool IsError(string as_0 = "Raptor V1") {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

string ErrorDescription(int ai_0) {
string ls_ret_4;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

double ArrayMinValue(double ada_0[]) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

double ArrayMaxValue(double ada_0[]) {
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool IsTradeTime(int ai_0) {
int li_12;
int li_16;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool CheckKEY() {
int li_unused_20;
int lia_24[10];
string ls_28;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

bool IsValidKey(int ai_0) {
string ls_20;
string ls_28;
string ls_unused_36;
int l_str2int_44;
int l_str2int_48;
int li_52;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

string rnd() {
string ls_ret_4;
// demo limitation, visit http://purebeam.biz to get FULL decompiler version
}

riturajchahal
11-15-2008, 05:12 PM
i m have one question
when you set up fab alert
than what should be ur SMTP server ,SMTP login and password

Earl
11-15-2008, 05:19 PM
i m have one question
when you set up fab alert
than what should be ur SMTP server ,SMTP login and passwordI dunno... I used my own smtp and login from my e-mail account...but it didn't work...

Maybe I got the password wrong because I can find the booklet I had it in..

so far it's been a no go for me

koeiseun
11-15-2008, 07:27 PM
Use your settings for email as in your regular email application (outlook / express / thunderbird). Works for me - get emails direct to my cell phone.

koeiseun
11-15-2008, 07:32 PM
Hey all.... I know we all share our results and all, but I was thinking maybe we could make a donation account for koeiseun I am willing to set it up and donate the first $20.00 we all know this is going to take alot of work to accomplish..... That way if we end up with a kick ass ea from all of our suggestions and efforts maybe we can all profit from it.. Its just an idea.... Let me know what you all think

I am honored, but this is not necessary. If the idea works I am very happy to share the EA with you all so we can all make some real money. I completed the first pass of the code, but then the markets closed and I could not test further.

KS

koeiseun
11-16-2008, 07:36 PM
Here is the first try.
I have added some extra code to try and prevent additional hedges being opened right when the hedge closes itself. I use a buffer of the last 10 ticks and determine a very short term trend and try not to open a hedge if the trend shows it is going back towards a profitable FAP trade. I look t the average over the 10 ticks and also the maximum and minimum values depending if it is a buy or sell. You cn increase that buffer to make it even slower to react.
Input:
Fap magic - must be the same as your FAP setting
Stop Loss - teh s/l you want to place on your hedge - note the hedge will immediately change the s/l to the openprice if it can (i.e. when it is 3 to 4 pips in profit) This can cause the hedge to be closed quick but you should not care as it will be a zero trade.

WhereToHedge - the number of pips you want your FAP to loose before you start the hedge. Do not make it too small as there is a chance of you hitting your hedge stop loss and incur this loss.

BufSize - The number of ticks you want to use in your short trend calculation to see if the hedge really needs to open.

Debug - if you set this to true it will open the hedge on any trade open, not just FAP trades (it basically ignore the magic number. I used it to test as it is faster to open your own trades to test than wait for FAP to open one.

DebugLog - if you set this to true a file is generated that show some running information. Be careful - if your Vista is configured to allow admin privileges only in your program file area, this might hickup - keep it to false.

I have done minimal testing and provide this as is.

I will run it continuously on teh 5M with Earl's settings and 1M with FAP default and see what it does in teh long run. I set the whereto hedge very aggressively to see how it responds.

By teh way, you can run it on any timeframe chart.

Enjoy
KS

Sooner
11-16-2008, 07:43 PM
Testing on demo account now. I will let you know how it goes.

koeiseun
11-16-2008, 07:48 PM
Let me know if anyone wants the source code - I might even part with it:o

Sooner
11-16-2008, 08:06 PM
will this hedge all faps trades or just one at a time?

koeiseun
11-16-2008, 08:11 PM
This version will only look at one trade - sorry. I want to test the theory and if we can make it work well with one trade it should do well with multiple. I am already seeing some shortcomings and will improve as much as i can.

KS

^eagle^
11-16-2008, 08:16 PM
FAPhedge vs. ESS hedger

Who will take the title of king hedger?

I have them both set up on two different demos.

This is gonna be a good fight.

Earl
11-16-2008, 08:43 PM
FAPhedge vs. ESS hedger

Who will take the title of king hedger?

I have them both set up on two different demos.

This is gonna be a good fight.Ess hedge won't work unless you play with the code.....

you have faphedge???and you did not share...LOL

ESS can't auto adjust lots.....I'm using it as an account topper upper...

to catch those pips faps gives away at the begininng of each trade...

I got it set to tp15 sl/25 with half lots 0.2 for me...Ideally I should make extra money each trade

...again you have faphedge?

^eagle^
11-16-2008, 08:51 PM
Ess hedge won't work unless you play with the code.....

you have faphedge???and you did not share...LOL

ESS can't auto adjust lots.....I'm using it as an account topper upper...

to catch those pips faps gives away at the begininng of each trade...

I got it set to tp15 sl/25 with half lots 0.2 for me...Ideally I should make extra money each trade

...again you have faphedge?

Go back one page earl

This has been an active thread!:)

koeiseun
11-16-2008, 09:14 PM
OK - It does not work as expected - back to the drawing board.

KS

Earl
11-16-2008, 09:37 PM
OK - It does not work as expected - back to the drawing board.

KSwhats wrong with it???

koeiseun
11-16-2008, 09:43 PM
If teh market ranges after the hedge is opened you can hit your stoploss. Also when the sl is moved to prevent loss and it is triggered, the gap between the FAP loss and your hedge grows with every hedge that closes. Unfortunately if you make your sl gap to big you end up loosing money even if your fap trade ends up profitable at the end. I guess we will have to see if we can get the charles floyd hedge somehow and see how that perofrms. Only problem is tha will cost us $399.

Sooner
11-16-2008, 10:43 PM
Sounds good, I still haven't had one go far enough the wrong way to trigger it yet. Getting close though. I did see FAPS open a sell and then a buy position back to back this evening so that is a good sign.

Sooner
11-16-2008, 11:49 PM
Earl is that what you have been looking for?

wishiwasrich
11-17-2008, 12:09 AM
Hey Earl,

Sorry to bug you on this, but is there anyway you can just post a real short explanation of how your using the ESS to make those extra pips? ( EES for Dummies) and the settings as well? I am still learning how to use these and I am definitly not using it right!
Thanks again

^eagle^
11-17-2008, 12:13 AM
Earl is that what you have been looking for?

Holy freakin shiot Sooner!

IDK if this is what EARL has been looking for but I sure am!

This beaTS ak47 hands down!

woohoo!

nightnday newman and koisen?

Could you add the supercharger and a hedge to this!?

Make it all inclusive>?

Earl
11-17-2008, 12:16 AM
Hey Earl,

Sorry to bug you on this, but is there anyway you can just post a real short explanation of how your using the ESS to make those extra pips? ( EES for Dummies) and the settings as well? I am still learning how to use these and I am definitly not using it right!
Thanks againI tried to explain it in the "ess hedge this might work" thread

I'm still a little confused about it myself but..I know it works better with my settings than willsell's settings



let me ask you this ...do you know how to do a simple edit in meta editor???
..
I'll try and do some screen shots..maybe that might help

Sooner
11-17-2008, 12:19 AM
Holy freakin shiot Sooner!

IDK if this is what EARL has been looking for but I sure am!

This beaTS ak47 hands down!

woohoo!

nightnday newman and koisen?

Could you add the supercharger and a hedge to this!?

Make it all inclusive>?


Glad I could be of some assistance. It is amazing what you can find if you are willing to spend a little time on google. :D

^eagle^
11-17-2008, 12:22 AM
Quote:
Originally Posted by Voltrina View Post
from 365, to 207$...
live account..
would someone recommend me a setting?

btw, could someone here tweak the autopilot if i had the source code?

eagle replied'
We have a couple of coders here and I used to program in basic a decade or two ago so I'm sure we could come up with something.
end quote:



I have a flow chart for an add on idea I have been working on. Moving the period MA to 21 and changing the stop time to 20 almost does the same thing as my add on. I'm willing to share it if anyone is interested in coding it.

The logic premise is
Maximum orders=5
Orders > 3 then....
If longs=0 then long only else
If shorts=0 then short only else
if Current price-Highest short price>30 and h1=bull candle then short and long else
If Lowest longprice-current price> 30 and h1 is bear candle then shortand long else goto start of subroutine
The input of thirty can be changed. These last two commands above allow FAP to go long and short as the price moves back towards the 21 SMA while the longs or shorts >3 It should continue until one of the three open trades take profit.

I also have a margin altimeter that monitors margin until it reaches a specified level then goes to subroutine above (I have this an an optional routine)

I am thinking of adding a Stop loss only to those trades that seem to fall off the wagon to clear them out. then if we could hedge just those with the hedging EA I think we would have a complete system


It's kinda complicated but Let me know what you guys think.
I would also like to eliminate the end of month closeout and just stop out the big expenses with a hedge.

Is my logic flawed?


When price moves up through MA =long only
When price moves down through MA=short only

wishiwasrich
11-17-2008, 12:26 AM
I tried to explain it in the "ess hedge this might work" thread

I'm still a little confused about it myself but..I know it works better with my settings than willsell's settings



let me ask you this ...do you know how to do a simple edit in meta editor???
..
I'll try and do some screen shots..maybe that might help

Hi Earl,

Not that advanced yet, pretty much what i know is what I have learned from everyone here. Would love to learn though!

Sooner
11-17-2008, 12:41 AM
Eagle I agree that the end of month closeouts seem to be the killer in back testing. If they occur late and you have gathered enough profit to withstand them you are ok but what worries me is going live and having that happen on the first month or two of trading, especially with a small account size.

I also like the logic there to only go long or only go short in situations where opening another trade in the same direction as the current ones would seem to just be increasing risk.

n1ghtnday
11-17-2008, 12:48 AM
Holy freakin shiot Sooner!

IDK if this is what EARL has been looking for but I sure am!

This beaTS ak47 hands down!

woohoo!

nightnday newman and koisen?

Could you add the supercharger and a hedge to this!?

Make it all inclusive>?


ak47, got a kick out of that one, Eagle =p

We can pretty much do what we want with this source code. I can code a hedging system directly in if that's what we want. We just need to know exactly what we're shooting for. Right now we have mixed theories and lots of hope.

I'm still messing with hedging ideas myself, so i'll be more active on the forums.

-nnd

koeiseun
11-17-2008, 12:49 AM
If you want to prevent the end of the month closeout change the following:
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
if (TimeMonth(OrderOpenTime()) != TimeMonth(TimeCurrent())) return (1);
else return (0);
}
change to
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
return (0);
}
or add at the top of the file: extern bool CloseAtMonthEnd = false;
and then change the function to
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
if (!CloseAtMonthEnd) return(0);
if (TimeMonth(OrderOpenTime()) != TimeMonth(TimeCurrent())) return (1);
else return (0);
}
then you can change it in your visual settings to have it on or off.

koeiseun
11-17-2008, 12:51 AM
Earl is that what you have been looking for?


BTW - Sooner - good job on decompiling eh

^eagle^
11-17-2008, 01:13 AM
BTW - Sooner - good job on decompiling eh

Yes, WTG sooner.

And thank you koeiseun for the end of the month closeout option.

Sorry I misspelled your name above. In my excitement I didnt have time to look it up.

Earl
11-17-2008, 01:26 AM
thats GREAT!!!!!!!!!!!!!

now who wants to put the code back into faps are repackage it so we can use it???LLOL

I still need a working hedge preogram..LOL

so far I got ess working but you may lose 10 pip...or you might make double you money or save your account or nothing and still lose lose and lose somemore...LOL

^eagle^
11-17-2008, 02:04 AM
If you want to prevent the end of the month closeout change the following:
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
if (TimeMonth(OrderOpenTime()) != TimeMonth(TimeCurrent())) return (1);
else return (0);
}
change to
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
return (0);
}
or add at the top of the file: extern bool CloseAtMonthEnd = false;
and then change the function to
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
if (!CloseAtMonthEnd) return(0);
if (TimeMonth(OrderOpenTime()) != TimeMonth(TimeCurrent())) return (1);
else return (0);
}
then you can change it in your visual settings to have it on or off.

I added this but when I tried to place this version on a chart it would not initiate.

It is in my expertfolder as "FAPsupercharged" but It will not open.

Is it something that I did or is it the the program itself. Will it not function now that it is decompiled.

I'll try to load it without the change and see what happens

n1ghtnday
11-17-2008, 02:21 AM
From looking at this code I just can't see how FAPS isn't closing any trades at the end of the month lately. It looks as if it is comparing the month of open orders to the current month with a simple code. This code loops, so whether the first is on a weekend or not FAPS should close open trades come when the market opens at the beginning of the month.

Strange.

-nnd

alan
11-17-2008, 03:11 AM
Perhaps someone can enlighten me, but wher eis the wisdom in hedging a losing trade? Why not just set a stop loss, lick your wounds, and move on. At best opening a trade in the opposite direction will merely "lock" you into place. You will still have to realise a loss at some point in time when both positions have to be closed.

just my two cents.

Earl
11-17-2008, 03:28 AM
I think it's a good Idea to hedge an losing trade but you got to do it right from the start....

you have to open 2 trades to protect 1...

faps opens trade 1... most times it goes directly into negative it may go good or it may go bad who knows...but it always floats off -20+ pips before it comes in for the win...
ok


2nd ess opposite trade will take advantage of the -20+ pip before the faps win and take it's own win

this is where it gets tricky

3 ess trade will open with a large tp 150... so if the faps trade goes off into the wild blue yonder the ess trade will be there to light it's way....

it gives you a chance to close out both trades even..so you don't lose you account..

draw backs would be I've set a tight s/l of 5....if faps goes in for the kill right away you lose 10 pip

draw back if the market hits your stoploss and closes both trades but then turns around and heads north..now you have lost 10 pip and your still losing on your orginal trade...LOL


:D

limiting the pain sure hurts

n1ghtnday
11-17-2008, 05:08 AM
I think it's a good Idea to hedge an losing trade but you got to do it right from the start....

you have to open 2 trades to protect 1...

faps opens trade 1... most times it goes directly into negative it may go good or it may go bad who knows...but it always floats off -20+ pips before it comes in for the win...
ok


2nd ess opposite trade will take advantage of the -20+ pip before the faps win and take it's own win

this is where it gets tricky

3 ess trade will open with a large tp 150... so if the faps trade goes off into the wild blue yonder the ess trade will be there to light it's way....

it gives you a chance to close out both trades even..so you don't lose you account..

draw backs would be I've set a tight s/l of 5....if faps goes in for the kill right away you lose 10 pip

draw back if the market hits your stoploss and closes both trades but then turns around and heads north..now you have lost 10 pip and your still losing on your orginal trade...LOL


:D

limiting the pain sure hurts

I just had an interesting idea, but who knows if this makes any good sense, i'm up way too late.

Instead of using direct hedging, what if we did something where the trades are all timed and take profit / stop losses are set accordingly. So for example, if the trade goes into positive pips within the first couple of minutes then your T/P would be 30ish. If not, then your T/P would be 12ish with a stop loss of 85 or so.

Does this make sense to anyone? A timed system, of some sort.

-nnd

n1ghtnday
11-17-2008, 06:36 AM
Oh this idea is working better than I thought. I've already doubled my profit by adding this "timing technique". I just need to optimize it some more to help lower drawdowns, which are staying the same.

-nnd

Earl
11-17-2008, 06:43 AM
Oh this idea is working better than I thought. I've already doubled my profit by adding this "timing technique". I just need to optimize it some more to help lower drawdowns, which are staying the same.

-nndat this point everything sounds good....:D

keep the ideas rolling

n1ghtnday
11-17-2008, 06:51 AM
Tripled the profit now. Still working on the dds.

wishiwasrich
11-17-2008, 08:41 AM
Hey N1ghtnday

Are you using a different Hedginf EA? or modding the same one?

^eagle^
11-17-2008, 10:29 AM
Here is the first try.
I have added some extra code to try and prevent additional hedges being opened right when the hedge closes itself. I use a buffer of the last 10 ticks and determine a very short term trend and try not to open a hedge if the trend shows it is going back towards a profitable FAP trade. I look t the average over the 10 ticks and also the maximum and minimum values depending if it is a buy or sell. You cn increase that buffer to make it even slower to react.
Input:
Fap magic - must be the same as your FAP setting
Stop Loss - teh s/l you want to place on your hedge - note the hedge will immediately change the s/l to the openprice if it can (i.e. when it is 3 to 4 pips in profit) This can cause the hedge to be closed quick but you should not care as it will be a zero trade.

WhereToHedge - the number of pips you want your FAP to loose before you start the hedge. Do not make it too small as there is a chance of you hitting your hedge stop loss and incur this loss.

BufSize - The number of ticks you want to use in your short trend calculation to see if the hedge really needs to open.

Debug - if you set this to true it will open the hedge on any trade open, not just FAP trades (it basically ignore the magic number. I used it to test as it is faster to open your own trades to test than wait for FAP to open one.

DebugLog - if you set this to true a file is generated that show some running information. Be careful - if your Vista is configured to allow admin privileges only in your program file area, this might hickup - keep it to false.

I have done minimal testing and provide this as is.

I will run it continuously on teh 5M with Earl's settings and 1M with FAP default and see what it does in teh long run. I set the whereto hedge very aggressively to see how it responds.

By teh way, you can run it on any timeframe chart.

Enjoy
KS

Fap hedgerkeeps getting stopped out at ten pips. Im using it to hedge a trade on demo that is 2.34 lots so everytime it stops out I lose 234usd

Sometimes it stops out a break even too. when price heads back towards my trade is whe n this happens.

n1ghtnday
11-17-2008, 02:14 PM
Hey N1ghtnday

Are you using a different Hedginf EA? or modding the same one?

I'm am making my own hedging system built in directly with a FAPS type code. I am going around the copyright issues though since these guys are probably watching our every move.

-nnd

wishiwasrich
11-17-2008, 02:17 PM
just found out i am using an old version of FAPS on both of my demo accounts, strange thing is when everyone report those bigs sell loss positions last week, my demos had all buy positions and made all profitible trades using Earls settings, anyone have any thoughts on it?

koeiseun
11-17-2008, 02:19 PM
The stop loss is cinfigurable.

Please note: I indicated last night that the theory is not sound and that it actually does not work as expected.

KS

koeiseun
11-17-2008, 08:12 PM
I added this but when I tried to place this version on a chart it would not initiate.

It is in my expertfolder as "FAPsupercharged" but It will not open.

Is it something that I did or is it the the program itself. Will it not function now that it is decompiled.

I'll try to load it without the change and see what happens

Hi Eagle - I just compiled it with that added parameter and added it to a chart. No problem, and it immediately opened a trade as well. Seems good.
Try re-compiling it again. Try renaming it as well. I renamed the mq4 to FAPS.mq4 not to overwrite my forexautopilot.mq4

Let me know if you have more issues.

KS

wishiwasrich
11-17-2008, 08:14 PM
anychance of getting a copy of the "superFAP" ?

koeiseun
11-17-2008, 09:05 PM
anychance of getting a copy of the "superFAP" ?
Are you talking about the one sooner posted yesterday - I modified that one by adding the two lines of code mentioned. It is one or two pages back.

KS

^eagle^
11-17-2008, 09:12 PM
Hi Eagle - I just compiled it with that added parameter and added it to a chart. No problem, and it immediately opened a trade as well. Seems good.
Try re-compiling it again. Try renaming it as well. I renamed the mq4 to FAPS.mq4 not to overwrite my forexautopilot.mq4

Let me know if you have more issues.

KS

I cut out the old codes and copied and pasted the new codes in its place.

I noticed when I pasted the new code in that it listed it all on one line.

ZYou have it broken up on your post line by line

Would this syntax make a difference?

I added the unedited one to a chart and it worked fine so I am thinking This syntax error might be the problem

Also how hard would it be to add the supercharged subroutine to it. I know nightnday is working on a built in hedge. the supercharger also internally hedges somewhat. I would like to see both in one and maybe separate also for testing purposes.

Maybe its time to go back to school.

^eagle^
11-17-2008, 10:04 PM
int TradeSignalCloseOrderOnTime (int ai_unused_0) {

this line has this error....
'(' - function definition unexpected C:\Documents and Settings\nick\Desktop\FAPsupercharged.mq4 (113, 48)


cursor appears just before first parenthesis whenI click on error but I don't know what to do

koeiseun
11-18-2008, 12:13 AM
int TradeSignalCloseOrderOnTime (int ai_unused_0) {

this line has this error....
'(' - function definition unexpected C:\Documents and Settings\nick\Desktop\FAPsupercharged.mq4 (113, 48)


cursor appears just before first parenthesis whenI click on error but I don't know what to do

dont know what the problem is - here is mine with that function modified. See the new param below the KEY entry in the visual parameters.

KS

^eagle^
11-18-2008, 04:56 AM
dont know what the problem is - here is mine with that function modified. See the new param below the KEY entry in the visual parameters.

KS

Thank you so much.:)

n1ghtnday
11-18-2008, 05:23 AM
Guys, I know you are excited about removing the monthly closeout option, but in every backtest on different brokers, including ECNs my account has been knocked out.

I recommend leaving this part of FAPS alone, just my 2c.

-nnd

Earl
11-18-2008, 05:43 AM
the backtest I've done always shows a big increase or big decrease in the end of the month rate...I think there was only 1 maybe 2 months where faps would have made any money

echaz
11-18-2008, 09:20 AM
hey koeiseun i have a question concerning your modified FAPS.mq4 file.

when i purchased FAP my expert id was 0 so i wrote to the support and they send me the ForexAutopilotUniversal file.
so what should i do to run your modified file?

wishiwasrich
11-18-2008, 09:39 AM
Hey Nighnday

Any advancements on your timed trading EA?

Silent0ne
11-18-2008, 01:07 PM
I may be totally missing something here, and please tell me where my reasoning is wrong, but is there any reason not to set a trailing stop on the hedged trade??

Say your normal fap trade is TP=20

You set the Hedge EA to kick in at -50 or -100 or whatever (I'd do less)

Set the Hedge TP for 150-300 or even more w/ a TS of, I don't know 15? 30?

That way when the trade goes against FAP initially as is typical, and say it goes -50 pips before turning back, you still pull some profit from the hedged bet (35?) plus the 20 from the fap trade.

And if it goes totally against you, set the SL for FAP for 20-30 pips less than the TP from the Hedge trade (assuming simultaneous openings).

Is this possible? Sounds like a win-win, but maybe my logic is flawed (probably). Any ideas?

wishiwasrich
11-18-2008, 05:35 PM
I may be totally missing something here, and please tell me where my reasoning is wrong, but is there any reason not to set a trailing stop on the hedged trade??

Say your normal fap trade is TP=20

You set the Hedge EA to kick in at -50 or -100 or whatever (I'd do less)

Set the Hedge TP for 150-300 or even more w/ a TS of, I don't know 15? 30?

That way when the trade goes against FAP initially as is typical, and say it goes -50 pips before turning back, you still pull some profit from the hedged bet (35?) plus the 20 from the fap trade.

And if it goes totally against you, set the SL for FAP for 20-30 pips less than the TP from the Hedge trade (assuming simultaneous openings).

Is this possible? Sounds like a win-win, but maybe my logic is flawed (probably). Any ideas?

Sounds interesting, Earl?

lorddave
11-18-2008, 09:36 PM
I'm am making my own hedging system built in directly with a FAPS type code. I am going around the copyright issues though since these guys are probably watching our every move.

-nnd


How are you going with this NND? Very interested in your concept of timed TP's.

-Dave

Sooner
11-18-2008, 10:58 PM
SlientOne I think your logic is sound, however what we have run into so far is when hedging, if the price bounces between your hedge entry and your SL a number of times, you end up losing every time you get this small bounce. Personally I think the only real way of doing it is to open it and let it run, moving the SL to BE after 10-12 pips and not trying to get any pofit out of it. If we gain profit we run the risk of opening the same position over and over until eventually we lose on it wiping out the profit from the original faps trade.

When I hedge manually, I leave the trade open with no TP and let it run, I normally will not hedge a trade unless I am there to watch it as setting a SL and TP I am just as likely to get stopped out as hit my TP if they are set very close
If you set the SL/TP to far away from the open then you end up losing more than you win so it is a tough thing to work out from a programatic view point.

What I have been successful with is doing the following. If FAPS opens a trade and I am there to see it, I open one manually in the opposite direction as soon as I can. I put no SL or TP on it for a few minutes while I see what price is going to do, if it goes against the FAPS trade quickly then I move my SL to BE and set my TP to the same things that FAPS has, resulting in a double win more often than not.

^eagle^
11-18-2008, 11:06 PM
Sooner,

Would a buy or sell stop be more beneficial than just a manual open trade. That way if FAPs goes straight to TP the Stop is never triggered.

Just a thought. I'm not sure when you execute the hedge.

oofdah
11-18-2008, 11:09 PM
Sooner -

I'm assuming your acronym of "BE" stands for "Break Even"?

wishiwasrich
11-18-2008, 11:23 PM
I believe that this is what earl was working on, is it possible to have a EA that opens a hedge trade when FAPS does with the same tp settings? assuming no SL i guess?

wishiwasrich
11-18-2008, 11:24 PM
Sooner, when you manual trade, can I ask what indicators you base your trade off? thanks

Earl
11-18-2008, 11:26 PM
I'm lost on that one...whats the hedge bet s/l set at????

I think the best hedge bet is taken from ground zero..pip for pip...

Silent0ne
11-19-2008, 01:25 AM
I may be totally missing something here, and please tell me where my reasoning is wrong, but is there any reason not to set a trailing stop on the hedged trade??

Say your normal fap trade is TP=20

You set the Hedge EA to kick in at -50 or -100 or whatever (I'd do less)

Set the Hedge TP for 150-300 or even more w/ a TS of, I don't know 15? 30?

That way when the trade goes against FAP initially as is typical, and say it goes -50 pips before turning back, you still pull some profit from the hedged bet (35?) plus the 20 from the fap trade.

And if it goes totally against you, set the SL for FAP for 20-30 pips less than the TP from the Hedge trade (assuming simultaneous openings).

Is this possible? Sounds like a win-win, but maybe my logic is flawed (probably). Any ideas?

I'm lost on that one...whats the hedge bet s/l set at????

I think the best hedge bet is taken from ground zero..pip for pip...


I'm with you on the pip for pip Earl, I was just going with the flow of the conversation.

OK, so here's the gist of it:

FAP Trade- TP= 20
SL= 0

Hedge Trade- TP= 150-300
SL= -10
TS= 15


Scenario A: If the trade goes against the FAP immediately for at least 15 pips, the Trailing stop kicks in and worst case scenario is break even (or paying the spread). The TS follows at 15 pips behind until reversal, at which point it acts as a TP instead of waiting until BE. So if the trade goes 100 pips against FAP, then turns back, you have a 85 pip win on the hedge trade. (correct?)

Scenario B: If the trade goes immediately in the favor of FAP (rare in my experience), the Hedge SL kicks in at -10 giving a 10 pip win minus spread.


Here are the open FAP trades I have just for the EURUSD pair

-221 pips
-144 pips
-135 pips
-43 pips

They were not hedged, because I was not present at the time they were opened. But if they were, with a 15 pip TS in place, I might be looking at a Worst Case of 483 pips of profit on the hedge trades instead of just waiting to reach the FAP 20 TP.

And I have not included the negative swap on these either. Now I know it's possible that the TS would have already been hit on these, but at least thats Something positive coming out of the hedge (as opposed to being unhedged w/ no SL) to add to my account balance and increase my available margin.

I am sure there is a bit of gray area between scenario A and B, which is why I presented the idea for discussion.

Silent0ne
11-19-2008, 01:46 AM
SlientOne I think your logic is sound, however what we have run into so far is when hedging, if the price bounces between your hedge entry and your SL a number of times, you end up losing every time you get this small bounce. Personally I think the only real way of doing it is to open it and let it run, moving the SL to BE after 10-12 pips and not trying to get any pofit out of it. If we gain profit we run the risk of opening the same position over and over until eventually we lose on it wiping out the profit from the original faps trade.

When I hedge manually, I leave the trade open with no TP and let it run, I normally will not hedge a trade unless I am there to watch it as setting a SL and TP I am just as likely to get stopped out as hit my TP if they are set very close
If you set the SL/TP to far away from the open then you end up losing more than you win so it is a tough thing to work out from a programatic view point.

What I have been successful with is doing the following. If FAPS opens a trade and I am there to see it, I open one manually in the opposite direction as soon as I can. I put no SL or TP on it for a few minutes while I see what price is going to do, if it goes against the FAPS trade quickly then I move my SL to BE and set my TP to the same things that FAPS has, resulting in a double win more often than not.


Sorry Sooner,

I didn't see this response until I made my last post. This makes things a bit clearer for me, thanks.

I know absolutely nothing of programming, and I wouldn't even call myself a Forex trader, just a squirrel trying to get a nut!

Now what if you set the hedge to only open once, (See Last Post) simultaneously w/ FAP and if it closes out at TS, so be it?

I know there is no answer that will work for every situation, but I think we are all here to minimize losses and maximize profits. So in the situations where there is alot of bouncing, we might be better to just wait it out. But in the situations where the trade goes violently against us, we have a security blanket.

To be honest, I had all but given up on FAP (and found FAPUG to be a joke) until I found this forum, and I'm glad to be here.

newman
11-19-2008, 10:59 AM
SlientOne I think your logic is sound, however what we have run into so far is when hedging, if the price bounces between your hedge entry and your SL a number of times, you end up losing every time you get this small bounce.

I have mentioned earlier in the thread, if your hedge window is too small, it would hit with multiple losing trades when the price bounces. This is what happened to my last EA coded last year when I have hedge position opens, when the prices bounce, more losing positions....

I can predict your next step would be to open more long positions if it moves
up from a reference point and open more short positions if it move below a reference points.....eventually if it trends a lot in one direction, you would be able to close all positions with profit.....this is not FAPS anymore....keep the ideas coming...

lorddave
11-19-2008, 10:37 PM
Would there be anyway to implement a better Trailing stop system? I would like a TS that kicks in at a certain point ie, if I set my TP at 30 - 40 and my TS at 20, I would like the TS to not kick in until it is 20 pips up and I want it to protect those 20 pips (not put an SL at +1 pip when I hit +20 like the default does).

This way I would still be taking in a minimum of 20 pips with the possibility to earn more instead of the SL kicking in at +1 pip and only making a tiny amount of profit...

Any thought KS/NND?

Sooner
11-19-2008, 11:14 PM
SilentOne I use no indicators, in fact I only believe in one indicator and that is price. Everything else is just a squiggly line in my opinion. For manual trading I always go in the direction of the current H1 candle and if there have been 3 or more H1 candles in a row of the same color, I look to go the other direction on the 4th, sometimes it takes several hours before the candle color reverses but one thing is sure.... it will always reverse eventually. Most of my manual trades are hedges against FAPS especially if I catch it close to when faps opened the trade.

I like your idea of hedging as it might lead to some small losses over the course of a month but it would certainly lead to some gains as well which I think would outpace the losses based on everything I have seen so far.

traderdave
11-21-2008, 08:11 PM
If you want to prevent the end of the month closeout change the following:
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
if (TimeMonth(OrderOpenTime()) != TimeMonth(TimeCurrent())) return (1);
else return (0);
}
change to
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
return (0);
}
or add at the top of the file: extern bool CloseAtMonthEnd = false;
and then change the function to
int TradeSignalCloseOrderOnTime(int ai_unused_0) {
if (!CloseAtMonthEnd) return(0);
if (TimeMonth(OrderOpenTime()) != TimeMonth(TimeCurrent())) return (1);
else return (0);
}
then you can change it in your visual settings to have it on or off.
Hi guys, first post here, thank you all for the great info! Wow, if you take out the end of month closeouts, it could get hung in a bad trade for many months. No doubt FAP put it there because the 60 day guarantee could bite 'em in the butt: imagine them getting all their sales for a month killed by refunds because it would get stuck in a big losing trade and not do anything more(lol). You guys have it right, the hedge has to be the key, and you could still close out and start over. One thing I discovered, if you run FAP concurrently on separate MT4s, when one is stuck waiting out a losing trade, the other is free to open a trade and it does, with just as much probability of a profit. Maybe a hedge should close both positions after a set period of days if it's stalled and just start over?

Earl
11-21-2008, 09:25 PM
hedging just spins your wheels...waste of time...Alan said it...Alan is my voice of reason...

if you hedge every trade where are you going??? Nowhere fast:eek:

forget about hedging and think of ways to maximize profits!:D

I beat the hedging to death this week...it kept my account from growing and just had me spinning...forgot about hedging and I started to make money.

Win lose or draw

koeiseun
11-21-2008, 10:51 PM
hedging just spins your wheels...waste of time...Alan said it...Alan is my voice of reason...

if you hedge every trade where are you going??? Nowhere fast:eek:

forget about hedging and think of ways to maximize profits!:D

I beat the hedging to death this week...it kept my account from growing and just had me spinning...forgot about hedging and I started to make money.

Win lose or draw

Hi Earl,
I agree and disagree with you. Automated hedge does not work, I tried the whole week and too many stop outs. Manual hedge is a different story. If FAP is say -100 and you get worried about your account, open a manual hedge but no SL. Worst case you will loose the 100. This week I had one trade that went totally in the opposite direction and I was tempted to close it. In stead I opened a hedge and a little later the hedge was +150 and FAP was -200. It looked like the market started to turn so I closed out the hedge and eventually FAP closed with profit. You have to be on it the whole time.

koeiseun
11-21-2008, 11:08 PM
hey koeiseun i have a question concerning your modified FAPS.mq4 file.

when i purchased FAP my expert id was 0 so i wrote to the support and they send me the ForexAutopilotUniversal file.
so what should i do to run your modified file?

Hi echaz, unfortunately I can not help out. Use the source and build on your own system and see if that will resolve. Else you are stuck with the unmodified Universal version. PM me there might be something I can tell you off the grid.

Earl
11-21-2008, 11:24 PM
Hi Earl,
I agree and disagree with you. Automated hedge does not work, I tried the whole week and too many stop outs. Manual hedge is a different story. If FAP is say -100 and you get worried about your account, open a manual hedge but no SL. Worst case you will loose the 100. This week I had one trade that went totally in the opposite direction and I was tempted to close it. In stead I opened a hedge and a little later the hedge was +150 and FAP was -200. It looked like the market started to turn so I closed out the hedge and eventually FAP closed with profit. You have to be on it the whole time.
To much stress....trying to hedge killed my account early in the week...

we have got to stop watching faps soooo closely...I was down some serious pips early in the week...I just shut the screen of and walked away..

do you know what??? The all came good..

I'm also not affraid to close you what I think is a bad trade.

alan
11-21-2008, 11:36 PM
hehe..that happened to me as well...I manually closed a position thinking that I knew best..and guess what...the market turned around and had I left the position alone I would've not only been okay but made a profit...so from now on it's almost hands off...hard to resist though but I must trust in my stop loss more.

anskaven
01-30-2009, 02:58 AM
Are those two files (ForexAutoPilot~.mq4 and FAPS.mq4) the source code of FAP, is it legal posting them?

alan
01-30-2009, 04:11 AM
Where do you see those files?

NO it is not legal to post them. Anyone who posts illegal content here is immediately banned.

edwardBe
01-31-2009, 01:26 PM
Automated hedge does not work

I'm getting good results with Xchaparro's SafeGuard. Even with the occasional big loser due to MT4 re-starts that cause it to lose track of the trades, it is the only EA that has produced a positive balance on a demo account for me personally. If it had been running on a VPS, the big losers would not have occurred. I use it alongside FAPS and FAPT long term.

I am going to take it live when MBTrading accept live accounts because I already have a live account there for manual trades.

SG & FAPS are at http://edwardo.mt4stats.com (ForexMeta demo $2000 profit on a $10,000 account in two weeks) and SG and FAPT are at http://edwired.mt4stats.com (MBTrading demo $446 profit on a $10,000 account in one week).

Edward

Forexautopilotnewbie
01-31-2009, 02:16 PM
Does anyone know how to adjust the entry point of FAP i.e. if the FAP enters a short position for example @ 1.2840 and I would like to have this entry position autmatically changed by 10 or 20 pips higher to 1.2850 or 1.2860 etc. Is there a setting to let me accomplish this? Thx.

sonyabraham22
03-12-2009, 12:17 PM
Can i have the source of faphedge ea ?