Forum

OWn TrailStop Function does not work

Hi community, I developed my own trail-Stop function in addition to my already working trading class and now got the problem that i wont work. When it places a Stop for a Buy-Position, the SL shots past the current price and the position closes and in case of a Sell Position simply nothing happens

Own CTrade class shows huge deviation and won't open Positions

class CTrade { private : MqlTradeRequest request; MqlTradeResult result; // ADD SL TP Point Conversion public : bool openPosition ( ENUM_ORDER_TYPE pType, double pVolume, string pSymbol, double pStopLoss = 0 , double pTakeProfit = 0 , string pComment = NULL

Buffer is not changing while using the CopyBuffer-Function

Hi there, Im expiriencing a strange issue will copying data from an indicator buffer - the values of the buffer are never changes, so everytime the print function is called, the output is the same. What im doing wrong ? Here is the code: int rsiHandle; double buffer[]; int OnInit() {

Stoplevel is always 0 (demoAccount)

Hi, I got some troubles calculating the StopLevel - here is my code: double currPrice = SymbolInfoDouble(_Symbol,SYMBOL_ASK); double point = SymbolInfoDouble(_Symbol, SYMBOL_POINT ); double stopLevel = SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL) * point; double stopPrice = currPrice +

Technical hardware conditions for Metatrader 5 with one EA running

Hi everybody, For moving my EAs from my PC to a standalone-server im now watching for matching hardware. I already searched for the hardware-requirements and just found it for MT4 (1.0 GHz , 512 MB Ram) Now my favourite is this: <link to amazon.de deleted> HP MicroServer AMD TurionII N40L DualCore

Using past ticks in my ea

Hi all, Im building my own ea and my next step is to test it on past ticks to get the best settings. I already searched for it, but nothing matched. Do i need the mql5 strategy tester for this or can i do that anyhow else ? Looking forwarad to your answers, Harald

Buying / Selling / Getting Indicatior and Oszilator values

Hi everybody, Im new here and just want to learn how to use mql5 for my purposes, cause every api provided by any broker is either too expensive or just trash. Since about 5 years im a VB .NET programmer and now i want to use my skills to write a dll which allows me to do the following actions: Buy