sebastianhh / Publications
Forum
pair trading / tandem; close all open postions when equity reaches a specific level
Hello, I am looking for a function or EA that closes all open positions when the equity reaches a certain amount. Basically a SL or TP for the entire accont. I want to use it when I open two positions that hedges themselfs. e.g. Balance 1000$ I open two positions manual. Long Dow Jones, short
Error 130 Invalid stops.
Hi Guys, I have trouble with SL and TP. Anyone any ideas? It works well when SL=0; Backtest also works, but when I go live I get Error 130 !!! thanks, Sebastian //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - extern int Magic= 40 ;
Programm an EA for spread / gap trading
Hi, Lets say we have two instruments that follow the same trend. E.G. Dax and DJ, or WTI and brent. if there is a certain gap between them, you open long position of the upper and a short position of the lower insturment. Position close when they meet. Is it possible to program an EA that can do it
double or int in ordersend's comment
Hi, I want my EA to put out e.g. the EMA or Magic Number in the comment field. Is it possible? How? Thanks, Sebastian int Magic= 105 ; t= OrderSend (CHART,OP_SELL,VolumeLots,Bid,SlipPips,s,p, "Magic" ,k, 0 , OrangeRed );
looking for special EMA cross EA.
Hi, I am looking for an EA with the following specification. Download, for sale, someone programming for money (how much) ect. EA calculates trend or countertrend market. If ATR above a certain value (extern) it is countertrend market. If ATR below a certain value it is trend market. Open position
magic Number does not work
Hi Guys, I have this EA but the magic Number does not work. I did not program it all myself and I tried to fix the MN for days but I do not get it. Can anyone help me. Everyelse is good so far. extern int MagicNumber = 123456 ; extern double Lots= 0.01 ; extern int Timeframe= 0 ;
How can I run the same EA with different settings on the same pair?
Hi, I have an EA what I want to run on the same pair with different settings. Now it opens only one position even if two other EAs were suppose to open a trade as well. And even worse, if one EA is suppose to close it position, but does not have an open one, it just closes a position from another
Problem with Magic Number
extern int MagicNumber = 123456 ; extern double Lots= 0.01 ; extern int Timeframe= 0 ; extern int EMA_PeriodSlow= 100 ; extern int EMA_PeriodFast= 0 ; extern double SL_EMA_Buyfactor= 0 ; extern double TP_EMA_Buyfactor= 0 ; extern double
Help me search in this Forum
Hi, I am looking for different EAs and scrips that change an postion from long to short and vice versa. Is there an english word for it what I can use to search or do you have any other suggestions? I just feel kind of unfriendly when I publish my questions without properly searching this forum in
Change Extern while EA is working
Hi, I have programed my EA and now I am optimising the settings. During live testing (real money, real time) I would like to change some setting in the EA that are adjustable during launch ( extern int EMAperiod =21;) . Can I do that while it is working. e.g. I would like to change the EMA Period