@sikhofx No problem
Posts made by jstap
-
RE: Server Issuesposted in Bug Reports
@l-andorrà He is correct on Saturday I couldn't get any large EA's downloaded, not the first time bit annoying and always seems to be at weekend, took me hours to do a simple 10 block EA, in the end I gave up.
-
RE: Copy and Paste Areaposted in Questions & Answers
As other people have said this is how to do it, I have found that using ctrl C & V doesn't work and you must right click, sometimes ctrl V will just past the last block copied and sods law says it will be just 1.
-
RE: Simple EA for Percentage Changeposted in Questions & Answers
@mohamed80 This is true and previous candle close = current candle open (unless there is a gap).
VARIABLE 1= (VARIABLE 2/100*23+VARIABLE 3);
You can also add if's like this
if(VARIABLE 1 < VARIABLE 2 ) { VARIABLE 3 = 2.00; }you can add multiple lines into the block, I always put anything that needs calculated first above the rest.
if you put this in custom code then the result will be put into VARIABLE 1, This is for MT4 but I think is the same for MT5, the best you can do is candle open >or< current price as at any point within candle 0 there will be no close. If you start a new project and just put different versions of custom code into variable and place tis into a comment block you will be able to see what your code is doing.
In here link text you will see some examples of code I have used, another tip I will use excel if and = formulas to convert 1 line into multiple, I separate the line into cells and then copy/change it all down until I copy all into the custom code, at this point it will go back into 1 line, probably better ways but I don't know them.
Good luck
-
RE: Help Please: Using ATR as Stop Lossposted in Questions & Answers
@gordonhmilton once you have pips in a variable you can multiply and use the variable in the buy sell block.
-
RE: Help Please: Using ATR as Stop Lossposted in Questions & Answers
@gordonhmilton You should find all you need here:
https://fxdreema.com/forum/topic/12843/atr-to-pips-new-formula
-
RE: ea pasword ??posted in Questions & Answers
@sikerentea I'm not sure how to do it in FX and have never tried but, if you search google you will find the few lines of code you can add once project finished to achieve this.
-
RE: Simple EA for Percentage Changeposted in Questions & Answers
@mohamed80 Hi Mohamed, try changing all your candle ID's to 1, 0 is the current candle so it will only ever have a split second to catch the candle close.
In this link is how to do an if statement, NAME & RESULT are variables, what you have written above can be put into MX code but probably easier to store data, if you wat to do a formula in custom code then like XL you put it in brackets as you did above, E.G (1+9)/8)}.
Hope this helps
-
RE: ATR to PIPS new Formulaposted in Tutorials by Users
@fenixtrading Ok well spotted, sometimes must be half asleep.
-
RE: ATR to PIPS new Formulaposted in Tutorials by Users
@fenixtrading I am not denying that your picture is showing correct results, I am just saying that when I did as you have shown, I did not get the result that you are getting.
-
RE: Entry point!posted in Questions & Answers
@laimoniszerga1 To do this I use a loop in this link you will see how to count candles from x, then put another condition for candle touching MA.
-
RE: Getting values of indicator from spesific datesposted in Questions & Answers
@l-andorrà You know what they say you learn something new every day:)
-
RE: Getting values of indicator from spesific datesposted in Questions & Answers
Between the picture and link you will see how to get the candle ID from date/time and how to get the RSI value from that ID, you can then use the ID variable to get whatever values you need.
Hope this helps
-
RE: ATR to PIPS new Formulaposted in Tutorials by Users
I do believe that using standard in built functions to achieve this is possible and probably preferable but, I did what you have showed and got only ATR value not pips, maybe I have done something wrong, in this link you will see what I have done:
In this link you will see how I used your original post to achieve what you are trying to achieve, maybe you can combine all to get a way of using standard functions to achieve result, also if normalise double is used then you can cut the result to a chosen places past the decimal:
-
RE: number of open transactionsposted in Questions & Answers
@ladydolares sometimes things in FX don't work as expected, there is another option though, on the on tick tab have what is in the picture without the pink blocks, on the on trade tab use a purple trade closed block and under place the check and buy.
-
RE: RISK FIXED AMOUNT OF MONEY - Not using fix amount of money.posted in Questions & Answers
@starb I have never used the use fixed amount so I didn't realise it was there, I would think it does exactly as depicted, I assume it selects lot size depending on money at risk. If you post the link then what is going can be assessed.
-
RE: RISK FIXED AMOUNT OF MONEY - Not using fix amount of money.posted in Questions & Answers
Not exactly sure how you are getting to risking a set amount, as the inbuilt options work from amount in account which is constantly changing, what you could do is set your lot size so each pip on a specific asset is the same, you could also add balance to max amount to loose and when equity reaches this all trades are closed.
