Fredrik Wenngren
Fredrik Wenngren
Friends

Add friends via their profile or user search and you will be able to see if they are online

Fredrik Wenngren
Added topic iBarShift trouble
Why do: int bars = iBarShift( Symbol (), 0 ,iTime( Symbol (), PERIOD_MN1 , 24 )); AND int bars = iBarShift( Symbol (), 0 ,iTime( Symbol (), PERIOD_MN1 , 3 )); BOTH return bars = 1000??? (On Daily chart in tester) If i change period to PERIOD_W1 the
Fredrik Wenngren
Added topic OrderModify - Error 1 (ERR_NO_RESULT)
Hi, This function is sporadicaly returning OrderModify Error 1. Any ideas? I'd be most thankful! void ManageOrders() {    double open, stop;       if ( OrdersTotal () != 0 )    {
Fredrik Wenngren
Added topic Have anyone managed to make a continiously profitable ea?
With all people in this forum, and especially those who has been around for a while. Is here anyone or do you know of anyone (for certain, not just what they are saying) that has managed to create an EA profitable enough for them to put on a live
Fredrik Wenngren
Added topic Visual mode needed for ObjectGet in backtester?
Hi, If using ObjectGet in my EA will it not be able to run in non-visual mode? My current project just wont optimize, it freezes, and this seem to be the only logical explanation I can find. Thanks in advance / McKeen
Fredrik Wenngren
Added topic Am I on to something? (senior advice needed on my equity curve)
Hi, Not bragging, not selling, I just want an experienced opinion in whether theese results could be something or if it's nothing because of the extended period of time. Initial balance: 10000, Flat 0.1 lot, 650 trades, H1-based, testperiod 4,5
Fredrik Wenngren
Added topic ObjectGet - FiboRetracement X / Y values
Hi, I am trying to get my EA to read the x / y values from a manually drawn Fibo-retracement. I have searched and read the ObjProperties and the closest I seem to get is the OBJPROP_FIRSTLEVEL+n, however that only seems to return the price-level of
Fredrik Wenngren
Added topic Any ideas on placement of text-label according to where chart candles are?
Hi, If anyone have an idea on how to identify for example: The screen (showing for example 80 bars, using the same zoom-level all of the time) is showing a candlestick chart in a downtrend resulting in the top-left quarter of the screen being blurred
Fredrik Wenngren
Added topic Drawing lines that have an end (instead of OBJ_TREND)
Hi, I know it can be done and I have read all the object-types over and over again with no success. What object-type is to be used if i want to draw a line with a beginning AND an end on-screen? Thanks alot in advance for any help. / McKeen
Fredrik Wenngren
Added topic Use static variables or define new in loop, what is best?
Hi, Suppose I am calling a function which will need 3 variables already defined in the start-function. Is there any reason for using theese variables when calling the function to replace them with function-defined variables? For example, I have
Fredrik Wenngren
Added topic What do my switch always return last value?
Hi, I am using this switch in my initialization function to set currency quotes for automatic lot-size calculation. Unfortunately it always returns 1.01 as in case #7. What is wrong here? --- int init() { string BaseCurrency =
Fredrik Wenngren
Added topic Strategy Tester Visual mode - different results with different speed...
Hi dear community, If someone could explain how this can be I would be very thankful. I fear not to be believed so I will post a video showing the exact problem if neccessary. I am using one include-file and also painting 1 new Fib-retracement + 1
Fredrik Wenngren
Added topic FileReadDouble not working from CSV file
Hi, Is this even possible or am I doomed to reading them by FileReadString ? If it should be working then please look at my little test-code for this purpose below: string FileName = "Readfromfile.csv"; double FileDouble; int LastMinute;
Fredrik Wenngren
Added topic What is wrong with my IF-loops? Help & general tips appreciated by amateur coder [solved]
I found the answer to my problem, thanks for your suggestion it led me in the right direction
Fredrik Wenngren
Registered at MQL5.community