@youngtreptrader You could set up a variable that counts minutes, start the count at the start of a candle (you could count a 1 minute candle), reset just before you start the count, when a condition meets the required number place the trade, on back test it will likely only count minutes if on the 1m chart.
Posts made by jstap
-
RE: Countdown to executtionposted in Questions & Answers
-
RE: One market trade cancels the other at a given levelposted in Questions & Answers
@sleek You don't need a blue block above pink but you do need a pink for each trade, do you need your type to close trades?

-
RE: One market trade cancels the other at a given levelposted in Questions & Answers
@sleek Your shared link just opens builder, open shared link in a web page, copy from there.
Warnings wont stop the EA working, only errors will. -
RE: RSI condition to close tradeposted in Questions & Answers
@william-1 This https://fxdreema.com/shared/miLtEu1Td should show you how to connect blocks to do things you need, is using a variable so you can see what is happening in a comment.
-
RE: Adjusting the order lot size 0.01 0.02 0.04posted in Questions & Answers
@truongvnd Every time you place an order add 1 to the number of placed orders (in a variable), in separate trees check the number in a condition block then modify a variable to the new lot, when sequence is finished reset the variable to 0.01.
-
RE: Stop Loss Parabolic first dotposted in Questions & Answers
@wctrade36 On a variable leave it at 0 (this is what it will save to), the EA will change it as needed.
-
RE: Strength Meterposted in General Discussions
@pais Put the trend power in a string variable, use this custom code and save into another string variable:
StringSubstr(string variable name,13,3 );
this should put the number into the variable
convert the string into a new double variable with this custom code:StrToDouble(new variable)
you can then use a condition block to check if %number is > 60.
Try this, it should work, if not let me know.
-
RE: RSI condition to close tradeposted in Questions & Answers
@william-1 Put a shared link here so what is happening can be assessed.
-
RE: The EA restart the lot size when computer turn offposted in Questions & Answers
@lali This is working, I wont be about much over the weekend but you should have enough to get on with things, I have checked information is being put in the common file, good luck.
-
RE: Condition in the Take Profitposted in Questions & Answers
@jrpscanavini A condition block with candle X> MA then a close position block beneath.
-
RE: GRID that reopen same position after Take PRofitposted in Questions & Answers
@trdjb3 For this use pink block for each closed position>buy/sell, for every option you want to be the same select trade order in loop and the desired option, put this below the purple block.
-
RE: GRID that reopen same position after Take PRofitposted in Questions & Answers
@trdjb3 On the on trade tab, using the purple blocks, once an order is closed you can recreate anything you want.
-
RE: The EA restart the lot size when computer turn offposted in Questions & Answers
@lali There is a lot involved in doing this, download the shared file and test, implement into your project, place a shared link so what isn't working can be addressed. If you go to file>data folder then go to terminal then common you will see the created TXT files. These can be used with any/all terminals on your computer.
I don't mind helping you use this just make a start.
-
RE: The EA restart the lot size when computer turn offposted in Questions & Answers
@lali You will need to save the used lot to a file and update every time it changes, every time a trade is placed it uses the saved lot.
This will show you how to save and read to/from a file:
-
RE: How to draw zig zag top and bottom lines.posted in Questions & Answers
@ontradingx MT4 or MT5? If ZZ on way up then the last fixed is H1 & L0, H1 candle high, L0 candle low.
-
RE: Highest High Lowest Low EAposted in Questions & Answers
@sibkis Your logic is correct just use candle 1 instead of 0, your take profit will just choose the price at start, so isn't guaranteed to be in the best place.
-
RE: How to draw zig zag top and bottom lines.posted in Questions & Answers
@ontradingx Search @miro1360 and use his code this will give you the price level or candle ID.
-
RE: Timesposted in Questions & Answers
@legendarymike To make the shared link easier for people to click click it so it opens in a web page, then copy from there otherwise people have to open a shared link of there own and then copy the half link to past over half there own.