So im learning how to code(eventually)... However, what I find is-- I dont know -- exactly what I dont know. . So my idea here is to collect a listing of the most crucial common functions to know. . Maybe the best 100/200? . . Once we have a fantastic list set together ill make a flashcard document and post it here(this manner guys can print up their own flashcards and get to work). . This should help. . They could come in-- make the listing-- learn the functions (even when they dont know how to use them however) then go on to learn the code and know there's a purpose to get the open price of a candle or anything like this). .
~ matter to know; If you click on a phrase on your script/ea code and press f1-- it will bring up the reference guide and inform you about the thing you'd clicked on. .
Instance = iMa();. . You click on the iMa after which hit f1 and it'll let you know about that indior and explain to you how to use it. .
1. Extern (used to declare a external variable)(this is one of those variable when you drop a script on a chart and it's possible to input something(tp , sl ect)
2. Remark(); (used to put a comment on the screen)
3. MessageBox(text,header,flag); (to have a box pop up to inform you of something)
4. Publish() (this will print some info into the journal)
5.) Alert(); (this will pop up a alert telling)
This next group will get you info on the pair your on-- they get the data array that's native within mql4. . Example Open[10]; will show you the open price of this candle 10 back in the current candle which is candle[0] (we dont rely that the current candle trigger its still available and will alter)
6. Time[]
7. Open[]
8. High[]
9. Low[]
10. Close[]
11. Volume[]
if you would like to call info from different pairs-- you use these below. You see that the function brackets ()are utilized versus the array brackets []as previously. . The data in the mounts goes like this (pair,time,candle amount);
12. iTime();
13. iOpen();
14. iHigh();
15. iLow();
16. IClose() instance iClose(GBPJPY,60,20) no matter what pair your own on-- this would seem at gj, 60min, 20 candles straight from candle 0
17. iVolume();
18. NULL (to get a funtion that calls for the pair-- you can put NULL in and it just means-- use the pair your on(BE SURE to capitalize all the letters from NULL)
19. In a message box you use the sign to set lines and info. . In Alert,Comment and Print function you use a comma,
20. _Period or Period() does the exact same thing. . It may retrieve the period of the chart you lost it on. . Usefull if you place a rule because states this scirpt can simply be used on a 60min chart. .
21. Functions used to put a order(you dont only put a order with sl and everyhting in it. . You place a order-- after which you pick the order you placed and you then alter the order for tp and sl)
a. OrderSend();
b. OrderSelect();
c. OrderModify();
22. GetLastError();
23. OpenOrderPrice();
24. TimeLocal(); (this shows the time of your pc)
25. TimeCurrent(); (shows the time of their brokers server computer)
26. _Symbol Or Symbol(); calls the chart emblem)
27. Digits; (This find out the total of those digits on the pair your on)
28. MarketInfo(pair,mode=exactly what info you want); illuion int getBid = MarketInfo(EURUSD, MODE_BID);
29. IndiorCounted(); (this gets the amount of bars on the chart)
30. OrderMagicNumber(); (this is used to make sure the magic amount on a order is the same as the script calling it.
31. Bid (this refers to the price used when placing a market order)
32. Ask (this refers to the price used when placing a buy order)
33. ICustom(); This calls for a custom indior. Within the brakets is amount of items that the function will call for-- but it will inform you)
34. IMa(); This may call a moving average indior. . Mql4 includes a lot of stock embedded indiors rsi , Bollinger Bands, stock, macd. . So you may just substitute
that the MA with what you want iMacd(). . This way you dont need to reinvent the wheel if employing a common indior. .
As you guys add to the record-- sick keep adding to the master list. . If a person already has a record of the most important functions/calls to share-- then by all means do so. . If I had a record when starting out-- I would have heard them and it would have made things so much simpler. .