if (longsOn)
{
// Print("34B " + " Trade34B: " + Trade34B + " UseVolFilter: "
// + UseVolFilter + " MFI Filter:" + UseMFIFIlter + " Stoch Filter:" +
// UseStochFilter + " Time: " + Time[0]
// +" Volume: " + VOL1[0] + " MFI Value: " + MFI1[0] + " StochValue: " + StochasticsFast1.D[0]);
if (
((Trade34B == true) && (UseMFIFIlter == true) [COLOR=#2ecc71][B] // ON THIS line i get error name expected[/B][/COLOR]
&& (emaAngulation > EMAAngulation * TickSize) // EMA Angulation is greater then (x)
&& (emaAngulationXBarsBefore > EMAAngulationXBarsBefore * TickSize) // EMA Angulation X bars before - angulation not on current bar but 5 bars before for example
&& (Close[1] < Open[1]) // previous bar bearish
&& (Low[0] < Low[1]) // and low of signal bar is lower then previous bar
&& (Low[0] < slowEMA[0] && Close[0] > slowEMA[0] + ABEMA34B * TickSize)
&& !(Open[1] < High[1] && Close[0] < High[1])
&& (EMA(200)[0] < slowEMA[0])
&& (MFI1[0] >= LevelForLongs))
((Trade34B == true) && (UseVolFilter == true)
&& (emaAngulation > EMAAngulation * TickSize) // EMA Angulation is greater then (x)
&& (emaAngulationXBarsBefore > EMAAngulationXBarsBefore * TickSize) // EMA Angulation X bars before - angulation not on current bar but 5 bars before for example
&& (Close[1] < Open[1]) // previous bar bearish
&& (Low[0] < Low[1]) // and low of signal bar is lower then previous bar
&& (Low[0] < slowEMA[0] && Close[0] > slowEMA[0] + ABEMA34B * TickSize)
&& !(Open[1] < High[1] && Close[0] < High[1])
&& (EMA(200)[0] < slowEMA[0])
&& (VOL1[0] >= VolReading ))
((Trade34B == true) && (UseStochFilter == true)
&& (emaAngulation > EMAAngulation * TickSize) // EMA Angulation is greater then (x)
&& (emaAngulationXBarsBefore > EMAAngulationXBarsBefore * TickSize) // EMA Angulation X bars before - angulation not on current bar but 5 bars before for example
&& (Close[1] < Open[1]) // previous bar bearish
&& (Low[0] < Low[1]) // and low of signal bar is lower then previous bar
&& (Low[0] < slowEMA[0] && Close[0] > slowEMA[0] + ABEMA34B * TickSize)
//&& !(Open[1] < High[1] && Close[0] < High[1])
&& (EMA(200)[0] < slowEMA[0])
&& (StochasticsFast1.D[0] <= StochLongLevels))
((Trade34B == true)
&& (emaAngulation > EMAAngulation * TickSize) // EMA Angulation is greater then (x)
&& (emaAngulationXBarsBefore > EMAAngulationXBarsBefore * TickSize) // EMA Angulation X bars before - angulation not on current bar but 5 bars before for example
&& (Close[1] < Open[1]) // previous bar bearish
&& (Low[0] < Low[1]) // and low of signal bar is lower then previous bar
&& (Low[0] < slowEMA[0] && Close[0] > slowEMA[0] + ABEMA34B * TickSize)
//&& !(Open[1] < High[1] && Close[0] < High[1])
&& (EMA(200)[0] < slowEMA[0])
&& (Close[0] < CurrentDayOHL().CurrentHigh[4] - DistanceToOHL * TickSize))) // distance to be greater then close of signal bar and current high)
{
entryOrder = SubmitOrderUnmanaged(0, OrderAction.Buy, OrderType.Market, TradeSize, 0, 0, "", "34B");
Print("34B " + " Close price is: " + Close[0] + " Open price is: " + Open[0] );
return;
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to fix method name expected error
Collapse
X
-
How to fix method name expected error
HI i have this code and cant figure out how ot fix this name expected. There isnt suppose to be a method it just a if statement for main strategy 34B and filters
Code:Last edited by tkaboris; 02-18-2023, 08:47 AM.Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
79 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment