joshatt
joshatt
Friends

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

joshatt
Added topic why these lines hide themselves?
Hi all, "Ichimoku" indicator has a band plus three lines. I'm trying to hide the three lines(No. 1,2,5) and add three MA lines. The following is the code, but why that band does not show up in the chart? Could anybody please help? #property
joshatt
Added topic mt4 android bug?
Hi all,  My android mt4 version is 400.636 , but for a long time and several versions I've seen this: 1, it can not remember data --- every few minutes I turn screen back on to check forex (my wifi is alway ON), BEFORE mt4 can successfully
joshatt
Added topic riskmoney of a position not having stoploss?
 Hi all, I'm working on a code that calculates "total riskmoney" (if all StopLoss hit......) of the current chart.  I found that with those orders/positions that I did not set stoploss, they're given a very large stoploss. My plan is to
joshatt
Registered at MQL5.community
joshatt
Added topic "while", what's wrong in my code?
Hi all, I'm working on this script: I manually draw a verticle line , then there'll be a Text showing the LOCAL time of that verticle line. I move the line, text will change. I'm using a technique of "tick simulation loop" found in this
joshatt
Added topic at WEEKEND draw a variable Text object?
Hi all, I'm thinking about drawing a Text object , telling the time of a verticle line, this verticle line I'll move around MANUALLY, so the Text content would change. The problem is: I want it work at weekend, no tick coming in. Any idea? Afrikaans
joshatt
Added topic need indicator showing local hour
Hi, In order to see a history bar's local time, I need an indicator line that shows the local hour --- day or minute is just the same between server time and local time. It will be perfect if it's Arabic numerals, instead of a line, that shows in the
joshatt
Added topic MT4 bug report
HI, MT4 version is 4.0.0 B509. I've figured it out, this is a bug: if you move mouse and hover on a S/L line in chart, there should be a small popup showing "drag to modify... xxx $ loss....". But if there is any SEPARATE WINDOW indicator
joshatt
Added topic real account order arrow disappears
Hi, In my real account , there used to be arrows on chart: 1, if I have an order and a stoploss for that order, there will be a loss value in $USD if mouse hovering on the stoploss line on chart; 2, if I've closed some orders, there will be arrows
joshatt
Added topic why indicator line empty value ?
Hi, I'm trying to write this indicator with 2 colors: up red, down white. But why the result is total empty? //+------------------------------------------------------------------+
joshatt
Added topic messagebox with timer?
I'm learning about messagebox , but I need a little more. I want: when you see the popup window, if you click YES button in 5 seconds, it will do something. If you don't click anything in 5 seconds, messagebox disappears and next code lines run
joshatt
Added topic remember original stoploss value?
Hi, For my EA, how can I make it remember the stoploss value of the FIRST of a series of open positions? (This first position is opened by manual, the latter positions are by EA.) With market moves, SL of this first position and other positions have
joshatt
Added topic EA, if bothered by stopout ?
Hi, In my EA, which in a considerable market move will open say 10 positions gradually, one by one . I'm thinking about: say after 7 positions opened, a stopout happens, how do I prevent EA from openning the other 3 positions? .... maybe the question
joshatt
Added topic pointvalueperlot?
Always dizzy about point,pip,tick. So I just borrow the following code from this forum: double   PointValuePerLot() { // Value in account currency of a Point of Symbol.      /* In tester I had a sale: open=1.35883
joshatt
Added topic zero divide
Hi, Not sure how to deal with math about ordersend lots, lotstep, minlot.... So I tried some, and suddenly an " zero divide " occured. By adding some debug "print", I'm sure it's because the math I just mentioned. ..... 
joshatt
Added topic Chinese character between SciTE and Metaeditor
Hi, SciTE is much better than Metaeditor. Everybody may want to try this: https://code.google.com/p/scite-mql/ I can create in SciTE a code including Chinese words and save, and open this code file. Also I can copy&paste into Metaeditor and then
joshatt
Added topic pip or point
Hi, a quick question please: OrderClose(OrderTicket(),OrderLots(),Bid, 3 ,White);   Not sure it's pip or point here. Do I need to rewrite it as: int mypoint; if ( Digits == 3 || Digits == 5 ) mypoint= 10 ; else mypoint= 1 ;
joshatt
Added topic need help with margin call/stopout
Hi, Given that: AccountStopoutMode()=0, AccountStopoutLevel()=100, leverage=400, maximum pips retracement which will cause stopout = 130 pips. How do I calculate the lotsize? Any idea would be appreciated. Thanks
joshatt
Added topic why this Array get zero?
Hi, I wrote a code, for trial purpose, which: 1>, draw a line showing zigzag swing high/low price, 2>, and print out price of peak1, peak2, peak3 and peak4 (from right to left). The code is like: ......    for ( int i= 0 ; i<limit;
joshatt
Added topic variable initialize?
Hi, I want to make an EA single instance. ---- only can attach to 1 chart, neither any other symbol, nor same symbol but multi charts. But I can switch timeframe in this one chart. I managed to write the following code: datetime timeinit =
12