pending test 2
you would have to loop for the last open order, grab the price add and/or subtract 1 point and place the pending orders based on this calculation.
pending test 2
you would have to loop for the last open order, grab the price add and/or subtract 1 point and place the pending orders based on this calculation.
@zhahz
loop the last 30 candles and break the loop if a condition isnt met
if you dont share what you currently have, its hard to see the issue...
i would loop the orders and grab the price of the order picked in loop, then you can check if the order is far/close enough to the current marked price and act accordingly.. I hope this helps you
@didymario7
no pending just checks if there is no pending order, if you already have an open order you should use the no order block...
ZigZag as an indicator lags 2-5 bars depending on the indicator you use.
if you have a good definition/ruleset of buying selling its no problem. I think miro did some tutorials with zig zags and also supply demand...
@ijoh
you mean loop for objects or orders?
if you dont know (understand properly) the math behind grids better stay away from it...
many made grids, by now i just saw 2 grids that actually work (sure there are more that work, but you most likely will never see the logic/calculation behind it)
its way easier to understand supply demand and some other strategies...
@tipsywisdom said in How do I loop my EA?:
this is what the curve of a gridder looks like. Someone built this once and gave it to me....but its just not a good system.
the concept isnt bad.. the only issue is the closing logic!
In the backtest you can see how much pending gain there is, which isnt trailed properly....
@nagstn
as i said before the scanner is more or less the last step, first you have to look at the indicators the type of data they have and how to bring things together.
if you want a sample this might help you but it isn't for total beginners, maybe it helps
@implosion
so you are most likely using just custom code for your projects?
why should someone show you his profitable ea instead of using it for himself?
@l-andorrĂ
thanks for you hint! since i don't know what indicators he is talking about it is a more general answer to his question. he would have to check/decide what works or not. I am just trying to help him find the right direction...
@nagstn you could start with defining what you want to scan and how the dashboard should look like then think of the best way to structure the data gathering process...
@roar
maybe the average spread of the last 5 10 or 15 bars would be nice as well?
@jsauter86
nice approach! I have kind of a similar situation an ea that creates nice profits but just on a single type of market didn'T figure out by now how to quantify that fitting condition^^^
you can go for a vps. costs like 8-9 Euro a month and works fine for just testing. if you want to have some details on that just write me a pm because i am not sure if it is allowed to post such links here...
as far as i remember the halftrend right they don't use 0 they just have empty values
so if you want to check if a value is zero you would have to open a custom code block
if (halftrend_value0 == EMPTY_VALUE) buy=1
if you want to get non empty values the code looks like this
if (halftrend_value!= EMPTY_VALUE) buy =1
yes his solutions:
part 1: grabs once a day the balance calculates the stoplevel and stores it and turns on all blocks
part 2: needs to run before any main calculation of the ea takes place (checks if balance below if true close all positions and turn off blocks (dont turn off the once a day block)