SirFency
SirFency
Just started to learn programming in march of 2018. Eventually I will have my very own EA built from scratch using a custom indicator and an existing indicator.
SirFency
Added topic Program stops the tester
I'm not understanding why the tester is stopping. It should go back to the beginning and start the checks again when all my statements end up being false right? I have done my best to comment everything and print statements to easily follow the path
SirFency
Added topic for loop questions
So I either do not understand for loops or visibility scope or both. I am just trying to loop through the history of my MA's and make sure they have not crossed over each other in a certain amount of time before I move on to my next criteria checks
SirFency
Added topic Not sure why my code is breaking the back tester.
I am working on a new idea and for some reason I cant see why the back tester is just stopping. Its got to be something simple I'm missing. I have set up many print statements to find out where the code is stopping and I have highlighted the code
SirFency
Added topic Checking if a function is true
I am trying to check if I already have an order open and if I do, make sure that it is either a long or a short. It seems like instead of my "if" statement checking to see if the bool function is true or not the program is just running the function
SirFency
Added topic alternative to ST and TP
My first issue is this: I use Oanda. I am in the US and we have the FIFO rule. Basically if I put a ST or TP on my order then I cannot send another order of the same size unless the previous order has been closed. The first order placed must be
SirFency
Added topic trades placed by EA when they should not
I am experiencing an issue. When I place the EA on my chart it buys or sells even when it should not. after the initial trade it makes imeadiatly when its placed on the chart, it begins running normal. I have a poor internet connection here and if I
SirFency
Added topic does the back tester use margin?
I have finally got an EA working and taking all winning trades. it dont trade often but when it does it wins. However I am using a high stoploss and I dont know if its taking into account margin . This would change things in the real world if I
SirFency
Added topic error 130
I have been getting this error and I cant seem to figure out the cause. I have been trying for the last 3 days to figure it out. I assume its because of my send order operation so I have adjusted everything I can think of. Nothing seems to stop it
SirFency
Added topic not all control paths return a value.
ok I have tried to find an answer but I'm not seeing it. I have searched the forums but none of the solutions seem to apply to me. I'm probably wrong though. the error is on the final "}". Thanks for your patience. //Function to Check the last 100
SirFency
Added topic Wont purchase during back test
I'm trying out a new bot idea and I cant get it to purchase or sell during back testing. basically this bot looks at the last 6 bars including the newest one and decides if it is a valley or a peek and puts in a buy or sell order depending on each
SirFency
Added topic buy and sell orders Not obeying all my conditions
I'm having an issue with my EA. Although it's doing very well it's not obeying all my conditions all the time. I have a variable named "gap" and my EA should not make trades on currency pairs when there relative strength and weakness are in a certain
SirFency
Added topic Placing more than one trade per Bar
I built this EA and I thought I put in the code to only make one trade per bar but it dont seem to be working. Sometimes it places more than one trade per bar. Could someone please help me figure out why? I'm checking with datetime and storing it in
SirFency
Added topic Only places trades in strategy tester
Could someone please help point out why this EA I have been working on will not place trades live. It seems to place them in the strategy tester fine
SirFency
Added topic only place trade on corect chart
If I want to place a trade only if its on the correct chart how would I achieve that. This is what I have now but I feel like this is the wrong syntax.        if ( Symbol == EURGBP && GBP_Band > EUR_Band
SirFency
Added topic Labels or Text in separate window
I would like to have some text in my indicator window that changes color when a buy or sell signal happens. Something like "EURGBP" sitting there yellow until a buy signal happens then it turns green, or red when a sell signal happens. Even better
SirFency
Added topic Sooo Close, but backwards
OK I have finally achieved what I have been working on for the last month except its backwards. I assume I need to reverse my index direction? The bottom graph is what I'm trying to create. The top is where I have made it so far. As you can see the
SirFency
Added topic Drawing too many buffer lines
I have 100 index buffers. I only want to draw 8 lines. The rest are there for calculation. How to I only draw 8. I have the ones I want to draw set to the first 8 indexes (0-7) I dont know how to stop the rest from drawing other than opening up the
SirFency
SirFency
Is there anyone available to help me figure out a problem with my oscillator drawing flat lines?
SirFency
Added topic Educational Resources For MQL4
I'm looking for some good educational resources besides this forum for learning how to code with MQL4. My ultimate goal is to create an EA that uses a currency strength meter and a stochastics oscillator to place trades. I'm making some good progress
SirFency
Added topic Help with iCustom for Drawing lines I'm hitting a wall and its killing me.
I'm having a difficult time figuring out why my iCustom lines are only using one value and drawing straight across the window. From everything I can tell it should be changing on each candle. Could someone please help me identify the problem that is
12